Tour
About Us
Meta
Loading…
current community
Stack Exchange
chat
Meta Stack Exchange
your communities
Sign up
or
log in
to customize your list.
more stack exchange communities
company blog
Log in
Stack Exchange
All Sites
Top Users
Digests
Stefan Pochmann
top
accounts
reputation
activity
subscriptions
Top Questions
149
votes
What causes [*a] to overallocate?
python
python-3.x
list
cpython
python-internals
asked Mar 5, 2020 at 16:22
stackoverflow.com
91
votes
Why is copying a shuffled list much slower?
python
python-internals
asked Feb 8, 2017 at 7:48
stackoverflow.com
28
votes
Why [20, ..., 13, 14].min(2) => [13, 20]?
ruby
min
asked Aug 20, 2015 at 15:00
stackoverflow.com
14
votes
Why is array.min so slow?
ruby
performance
min
built-in
asked Jan 9, 2016 at 15:31
stackoverflow.com
14
votes
Why does unpacking this map object print "must be an iterable, not map"?
python
python-3.6
asked Jul 28, 2017 at 1:08
stackoverflow.com
13
votes
Why does `mylist[:] = reversed(mylist)` work?
python
list
reverse
assign
python-internals
asked Jun 2, 2015 at 18:45
stackoverflow.com
13
votes
pprint sorting dicts but not sets?
python
python-3.x
dictionary
set
pprint
asked Jul 10, 2017 at 15:48
stackoverflow.com
8
votes
Why does `class X: mypow = pow` work? What about `self`?
python
methods
self
asked Jun 7, 2015 at 12:38
stackoverflow.com
6
votes
How to watch Timsort move elements around?
python
sorting
timsort
asked Aug 5, 2020 at 22:31
stackoverflow.com
5
votes
8 seconds for regex_match("", regex(".{40000}"));?
c++
regex
performance
asked Dec 10, 2016 at 11:43
stackoverflow.com
Top Answers
161
Return string with first match for a regex, handling case where there is no match
stackoverflow.com
126
Sort filenames in directory in ascending order
stackoverflow.com
61
Why is "1000000000000000 in range(1000000000000001)" so fast in Python 3?
stackoverflow.com
37
Finding first and last index of some value in a list in Python
stackoverflow.com
27
Theoretically can the Ackermann function be optimized?
stackoverflow.com
24
How to perform ceiling-division in integer arithmetic?
stackoverflow.com
23
List comprehensions in Python with mutable state between iterations
stackoverflow.com
23
Python: nested 'for' loops
stackoverflow.com
21
How to convert string to integer without using library functions in Python?
stackoverflow.com
19
Python Split list into sublists based on the first element in the sublists
stackoverflow.com
19
list around groupby results in empty groups
stackoverflow.com
18
What causes [*a] to overallocate?
stackoverflow.com
15
Efficiently find all the Pythagorean triplets where all numbers less than 1000
codereview.stackexchange.com
14
Efficiently find binary strings with low Hamming distance in large set
stackoverflow.com
13
One-liner to remove duplicates, keep ordering of list
stackoverflow.com
13
Why does python not stop loop when variable equates to the if statement
stackoverflow.com
13
Tidying up a list comprehension in Haskell
stackoverflow.com
13
Why is the median-of-medians algorithm described as using O(1) auxiliary space?
stackoverflow.com
12
Ruby's `lazy` less performant than allocating huge lists?
stackoverflow.com
12
How is the __contains__ method of the list class in Python implemented?
stackoverflow.com
12
Iterate all coprime pairs using constant space?
stackoverflow.com
12
What is the relationship between the Python data model and built-in functions?
stackoverflow.com
11
Check if array is an ordered subset
stackoverflow.com
11
how find all groups of subsets of set A? Set partitions in Python
stackoverflow.com
11
Using .iteritems() to iterate over key, value in Python dictionary
stackoverflow.com
11
Ruby's digits method performance
stackoverflow.com
11
Repeat list to max number of elements
stackoverflow.com
11
Automate the Boring Stuff With Python, Chapter 4 Exercise
stackoverflow.com
11
On Finding the Maximum Depth of an Arbitrarily Nested List
stackoverflow.com
11
How to watch Timsort move elements around?
stackoverflow.com
1
2
3
4
5
next
Stack Exchange works best with JavaScript enabled