16
Last seen 1 month ago
Member for 2 years, 7 months, 4 days
Difficulty Normal
Initiation
genexp
Count Digits
53
8
1
Counter()
The Most Frequent
149
4
0
Use the tuple, Luke!
Nearest Value
301
2
1
Zip it long!
Split Pairs
349
2
3
Use the set, Luke!
All the Same
372
4
1
Home
collections.Counter and dictcomp
Popular Words
12
14
1
regexp
First Word
63
9
0
sorted with a lambda
Sort Array by Element Frequency
66
10
1
Sort it with 'price' as key. In descending order. A lambda as a sorting key is possible too, see the commented out line.
Bigger Price
70
9
1
regexp
Backward Each Word
75
6
1
itertools.accumulate with special lambda
Three Words
191
9
1
datetime.date()
Days Between
331
5
1
Any guards in pawns?
Pawn Brotherhood
498
4
1
listcomp
Non-unique Elements
570
7
1
Electronic Station
All pairs strictly ascending?
Ascending List
94
5
1
functools.reduce()
Digits Multiplication
512
3
1
Scientific Expedition
normalize and combining
Remove Accents
28
6
1
Make use of re module
YAML. Simple Dict
31
5
1
Bitcoins
Call to Home
83
3
3
find in rows or columns
The Hidden Word
100
3
2
State machine
Caps Lock
128
2
1
Intersection of sets
Common Words
142
7
2
find()
Goes Right After
207
2
2
capitalize()
Conversion into CamelCase
299
1
0
isupper()
Secret Message
327
5
1
set()
Pangram
506
2
1
Specialized sort on collections.Counter()
The Most Wanted Letter
516
3
2
re.finditer()
Conversion from CamelCase
612
0
1
Rename
Letter Queue
761
0
1
Glancing into the future
Striped Words
1105
0
0
regsub() squared
Bird Language
1436
0
0
O'Reilly
Find indices of discontinuities and apply slicing
Reverse Every Ascending
14
12
0
Sum of timedeltas in total_seconds() from datetime pairs streamed out of zip()
Lightbulb Intro
46
5
1
subtract duration before start_watching mark from total duration
Lightbulb Start Watching
95
1
1
adjacent_difference
Compress List
120
3
1
Sort items without zeros, then find indices of zeroes (if any) and insert zeros at original positions
Sort Except Zero
148
3
0
convert to deque , rotate() it and convert back to list
Replace Last
169
3
1
Counter and sorted() with tuples as comparison entities
Frequency Sorting
428
0
0
Ice Base
for letter in word for word in words
Morse Encoder
157
2
3
max() - min()
The Most Numbers
243
6
1
SPQR
Roman Numerals
333
5
2
findall
Find Quotes
362
0
1
find segments of identical consecutive characters and return length of the longest one (if any)
Long Repeat
538
1
1
How many words are in text, regardless of case
Monkey Typing
827
1
0
Flying Rats
Feed Pigeons
962
0
0
GitHub
dictcomp
Cookies
21
6
0
Maximum tuple
The Highest Building
29
6
1
Hermit
regexp & set
Unique Email Addresses
3
9
3
Sigma(Ai*B**i)
Excel Column Number
3
4
4
slicing of sorted() result
Shorter Set
32
0
1