24
amandel
● 8 ● 25 ● 40
3335/ 3445
Awesome Team Arnaldo Mandel
Last seen 4 hours ago
Member for 3 years, 2 months, 10 days
Difficulty Advanced
Missions (197) / Solutions (211)
Best solutions / Newest solutions
Initiation
Plain
Split Pairs
list-comp
range
comprehension
len
Almost brute force
Between Markers
index
except
try
str
len
Basic recursion
Flatten a List (iterator version)
type
yield
else
for
if
Hashall
All the Same
Any
typing.Any
dict
List
typing.List
Index and try
Goes Right After
index
bool
except
try
False
1
Faster
All the Same
Any
typing.Any
List
typing.List
bool
Convert to ints
Pawn Brotherhood
ord
map
set
or
sum
1
Recursion
Flatten a List
type
is
inline-if
and
list
Zip
Sort Array by Element Frequency
zip
index
count
inline-if
sorted
Just hash them
Non-unique Elements
filter
lambda
in
list
for
1
Home
Pairwise twice
Changing direction
itertools.pairwise
pairwise
itertools
sum
print
1
2
Some brute force, polylog time
Ugly Numbers
math.log
log
itertools.product
product
itertools
3
2
Long one liner
Atbash Cipher
chr
ord
map
lambda
inline-if
7
Sort first
Missing Number
itertools.pairwise
pairwise
next
itertools
print
9
First
Xs and Os Referee
List
typing.List
typing
inline-if
sum
1
Just split
Split List
list
len
Simple
Conversion into CamelCase
capitalize
print
join
list-comp
split
Some cases
Cut Sentence
rindex
rstrip
inline-if
print
int
1
Walrus
Sun Angle
typing.Union
Union
float
map
typing
Use re
Beginning Zeros
re.search
search
re
int
str
1
Silly
Time Converter (24h to 12h)
format
map
inline-if
print
split
1
Electronic Station
Heap
The Final Stone
print
while
list-comp
list
comprehension
3
2
Direct solution
Acceptable Password II
any
isdigit
and
comprehension
len
2
Direct solution
Acceptable Password IV
any
isdigit
or
and
comprehension
4
Side proportions
Similar Triangles
Tuple
typing.Tuple
List
typing.List
bool
4
No tricks
Surjection Strings
dict
zip
bool
print
in
1
Using eval
Boolean Algebra
eval
dict
zip
Convert to regex
Unix Match. Part 1
fullmatch
re.fullmatch
re
None
bool
Simple
Conversion from CamelCase
islower
lower
inline-if
print
join
1
Direct solution
Acceptable Password V
any
isdigit
lower
in
and
1
Convert to regexp
Unix Match. Part 2
fullmatch
re.fullmatch
findall
re.findall
r-string
3
Just sort
Sort by Extension
rindex
List
typing.List
typing
lambda
1
math.prod does the work
Digits Multiplication
math.prod
prod
math
if-comprehension
comprehension
1
Direct solution
Acceptable Password VI
any
isdigit
set
lower
in
2
Counter
Verify Anagrams
collections.Counter
Counter
collections
replace
bool
Scientific Expedition
BFS
Water Sort Game
itertools.pairwise
pairwise
groupby
itertools.groupby
itertools.permutations
2
Re
Combining Celebrity Names
re.split
re.search
search
re
print
6
2
Eval
Aggregate by Operation
eval
f-string
dict-comp
dict
items
One liner
Common Words
sorted
join
if-comprehension
in
split
Sets
Pangram
set
lower
1
Direct
Sum by Type
Tuple
typing.Tuple
type
typing
sum
1
Enumerate
Caps Lock
upper
enumerate
inline-if
join
list-comp
1
Counter
Follow Instructions
Tuple
typing.Tuple
collections.Counter
Counter
collections
Transpose
The Hidden Word
itertools.zip_longest
zip_longest
itertools
find
map
Trivial
Absolute Sorting
abs
lambda
sorted
list
3
O'Reilly
Direct
All Roads Lead to Rome!
tuple
print
and
append
list-comp
2
Recursion, f'course
Cut Into Squares
cache
functools.cache
decorator
functools
min
4
Iterative
Cut Into Squares
itertools.product
product
itertools
min
print
5
No tricks
Reverse Every Ascending
reversed
while
and
len
6
Casting
Majority
bool
sum
list
len
7
One liner
Lightbulb Intro
datetime.datetime
datetime
List
typing.List
zip
Recursion
How Deep
type
is
map
max
inline-if
Trivial
Chunk
typing.Iterable
Iterable
typing
list-comp
range
Use former
Lightbulb Start Watching
Optional
typing.Optional
datetime.datetime
datetime
List
Adjust parity
Lightbulb End Watching
Optional
typing.Optional
datetime.datetime
datetime
List
1
Recursion
The Flat Dictionary
type
is
items
not
elif
Overkill
Median of Three
zip
typing.Iterable
Iterable
typing
inline-if
Zip
Compress List
zip
typing.Iterable
Iterable
typing
inline-if
Side effect
Replace Last
pop
inline-if
list
Tricky ordering
Frequency Sorting
zip
count
inline-if
sorted
True
One at a time
Determine the Order
difference
lstrip
zip
min
set
Basic
Remove All After
index
typing.Iterable
Iterable
typing
inline-if
Could do in linear time, who cares?
Median
float
List
typing.List
typing
sorted
Sort and merge
Sort Except Zero
typing.Iterable
Iterable
typing
sorted
while
Mine
Linear time
Garland
itertools.accumulate
accumulate
itertools
enumerate
max
1
1
Logical
Sum of Digits
or
print
and
int
2
5
Groupby
Count And Say
groupby
itertools.groupby
format
itertools
sum
2
2
Greedy
Garland
enumerate
max
print
while
if-comprehension
3
Just integers
Close Enough
tuple
min
abs
print
while
3
Casting out nines
Sum of Digits
not
inline-if
print
int
5
2
except OverflowError
e+pi
OverflowError
eval
itertools.product
product
pass
5
1
Simple search
Tricky String
zip
min
lambda
sum
print
6
Brute force
Champernowne Word
print
join
range
comprehension
int
6
First
Matrix-2-String
chain
itertools.chain
ascii_lowercase
string.ascii_lowercase
as
6
Trivial
Correct Capital
islower
isupper
bool
or
print
7
1
Generalized, more e's and pi's
e+pi
OverflowError
eval
itertools.product
product
pass
7
2
Slightly simplified
Tricky String
zip
min
lambda
sum
print
8
Finally correct
e+pi
OverflowError
eval
itertools.product
product
pass
9
4
Using log
Checking Perfect Power
math.log2
log2
math.exp
exp
math.log
9
Ord
String-2-Matrix
Ellipsis
tuple
ord
isupper
lower
9
Pure
Matrix-2-String
chr
tuple
ord
enumerate
sum
12
Collect and sort
Sort Sorted Groups
pop
lambda
or
sum
print
16
No tricks
Convert and Aggregate
setdefault
dict-comp
dict
items
tuple
17
One liner
Reverse Integer
abs
print
int
str
19
2
Three liner
The Hollow Diamond
reversed
chr
ord
zip
enumerate
20
Casting out nines II
Sum of Digits
not
or
inline-if
print
int
3
Basic
Bigger Together
cmp_to_key
functools.cmp_to_key
functools
List
typing.List
Recursive
Binary Count
not
inline-if
int
First
Achilles and the Tortoise
Direct
Best Stock
float
dict
items
max
lambda
Ice Base
One liner
Ordinary Cardinals
lambda
count
print
sorted
list-comp
1
Use a stack
Adjacent Letters
pop
not
or
print
join
1
1
Findall
Long Pressed
itertools.zip_longest
zip_longest
findall
re.findall
r-string
3
Direct
The Brick Factory Problem
None
or
inline-if
print
int
3
Essentially one-liner
Frogs Collision
tuple
zip
None
not
or
5
Simpler
Ordinary Cardinals
lambda
print
sorted
join
True
6
Accumulate
Colorful Disks
itertools.accumulate
accumulate
Ellipsis
itertools
tuple
8
Pairwise
Colorful Disks
itertools.pairwise
pairwise
itertools.accumulate
accumulate
Ellipsis
9
Just so
Count Divisibles in Range
print
int
10
Dict dispatch
Postfix Evaluation
floordiv
operator.floordiv
operator.sub
operator.add
mul
11
Linear on the size of the rectangle
Matrix "Hatching"
yield
typing.Iterable
Iterable
max
typing
20
Some math
Feed Pigeons
max
print
int
1
Groupby
Long Repeat
groupby
itertools.groupby
itertools
max
print
1
Simple
Long Repeat
max
print
else
int
str
1
Trivial
The Most Numbers
min
max
One liner
Find Quotes
split
Alice In Wonderland
Recursive
Backspace Apply
inline-if
print
str
1
Cached recursion (new)
Count Domino Tilings
cache
functools.cache
decorator
functools
tuple
2
From corners
Bishop vs Aliens
set-comp
tuple
zip
break
bool
2
Kesteleyn
Count Domino Tilings
isqrt
math.isqrt
itertools.pairwise
pairwise
itertools.accumulate
3
1
Recursive
The Cookie Monster
any
min
max
not
lambda
3
By layers
Ulam-Warburton Automaton Hex
itertools.pairwise
pairwise
itertools
sum
print
9
3
Just count
When "k" is Enough!
yield
typing.Iterable
Iterable
except
try
11
2
Using formula
Ulam–Warburton Automaton
bin
count
sum
print
range
12
1
First
Nearest Value
min
abs
set
list-comp
comprehension
17
Brute force
Ulam–Warburton Automaton
print
if-comprehension
and
append
list-comp
17
First
Bigger Price
sort
lambda
True
list
int
Tail recursion off
Backspace Apply
inline-if
print
while
str
First
Backward Each Word
finditer
re.finditer
reversed
re
join
Simple
Duplicate Zeros
extend
inline-if
print
append
list
Trivial
Easy Unpack
tuple
1
BFS
The Shortest Knight's Path
itertools.product
product
itertools
ord
pop
Count and sort
The Most Wanted Letter
collections.Counter
Counter
items
collections
isalpha
2
Lazy recursion
Middle Characters
inline-if
print
str
len
4
Using guards
Words Order
all
zip
index
bool
set
Pairwise
Ascending List
itertools.pairwise
pairwise
all
itertools
typing.Iterable
1
Basic
Correct Sentence
rstrip
upper
str
First
First Word
re.search
search
re
str
1
As suggested
Days Between
as
date
datetime.date
datetime
abs
Counter
The Most Wanted Letter
collections.Counter
Counter
items
collections
isalpha
1
GitHub
Following specs piecemeal
Simplify Unix Path
or
inline-if
join
while
in
4
Simple
Evenly Spaced Trees
itertools.pairwise
pairwise
math.gcd
gcd
itertools
16
1
Reversed
Common Tail
next
reversed
zip
None
print
1
Just works
Merge Intervals (iterator version)
iter
pop
max
sorted
append
6
Chain ranges
Expand Intervals
chain
itertools.chain
itertools
typing.Iterable
Iterable
1
Takewhile
Common Tail
itertools.takewhile
takewhile
reversed
itertools
zip
2
re+walrus
Long Repeat Inside
match
re.match
r-string
re
max
1
Transpose and sum
The Highest Building
zip
max
lambda
sum
range
New re+walrus
Long Repeat Inside
match
re.match
r-string
re
max
4
No tricks
Merge Intervals
pop
max
not
while
append
No tricks
Create Intervals
min
not
sorted
append
else
First
Solution for Anything
class
lambda
True
Sort reversed
The End of Other
itertools.pairwise
pairwise
endswith
any
itertools
Dropbox
Direct
Collatz Ztalloc
isinstance
None
not
or
print
2
Squeezing
Revorse the vewels
islower
upper
lower
lambda
inline-if
3
1
Basic recursion
On the same path
typing.Union
Union
union
Tuple
typing.Tuple
3
Recursive
Checkers Capture
cache
functools.cache
complex
decorator
functools
5
Simple
Interesting, intersecting
tuple
bool
or
print
False
9
Direct
Exploring Wythoff Array
next
tuple
index
inline-if
print
12
More pythonic
Revorse the vewels
filter
islower
upper
zip
enumerate
12
Recursive
Count Morse
startswith
set
sum
print
if-comprehension
14
1
Forgiveness
Switch Keys to Values
add
dict
items
except
try
20
2
Dot product
Fibonacci Spiral's End
mul
operator.mul
operator
map
lambda
20
Regex
Is String a Number? (Part II)
fullmatch
re.fullmatch
r-string
re
bool
FSM
Reveal the Number
float
None
isdigit
inline-if
print
First
Is String a Number?
all
bool
print
False
and
Line by line
Fibonacci Poem
extend
print
join
while
append
Inverted list
Switch Keys to Values
values
dict-comp
add
dict
items
Second, simplified
Interesting, intersecting
tuple
bool
or
inline-if
print
Lazy
Place Queens
itertools.permutations
permutations
combinations
itertools.combinations
set-comp
Hash and count
Popular Words
dict
zip
lower
in
split
First
The Longest Palindromic
print
range
str
len
for
1
Add up
Count Digits
isdigit
sum
comprehension
int
str
Direct
Simple Hashlib
eval
format
First
Max Digit
max
list
int
str
First
Sum Numbers
isdigit
sum
if-comprehension
split
comprehension
Simple
Numbers Factory
reversed
inline-if
join
while
append
Fizz buzz
Speech Module
divmod
inline-if
print
else
int
First
Three Words
any
isalpha
bool
and
list-comp
Storage
Trivial
Latest ISO datetime
max
print
str
1
HubSpot
Trivial
Is Even
bool
int
9
1
Direct
Non Empty Lines
isspace
sum
print
split
comprehension
13
Simple
Team Play
List
typing.List
zip
typing
sum
Direct solution
All Upper II
any
upper
isalpha
bool
and
Indexing
Fizz Buzz
print
int
str
1
Trivial
Right to Left
tuple
replace
join
str
First
Even the Last
inline-if
sum
range
list
comprehension
Blizzard
No frills
Move Zeros
not
print
if-comprehension
list-comp
list
13
Recursive
Knapsack Problem
collections.namedtuple
namedtuple
tuple
collections
pop
13
Recursive
Sum of Distinct Cubes
itertools.takewhile
takewhile
pass
itertools
pop
16
Quick
Stair Steps
max
for
First
Unlucky Days
date
datetime.date
datetime
sum
range
Rock
Traditional
Replace with Biggest
typing.Iterable
Iterable
max
typing
print
3
Straightforward FSM
Rolling 🎲!
inline-if
print
int
str
for
4
1
Keep state
Rolling 🎲!
inline-if
print
in
else
int
12
Better state
Rolling 🎲!
inline-if
print
in
else
int
14
1
Stupid
Replace with Biggest
typing.Iterable
Iterable
max
typing
print
Linear
Replace with Biggest
itertools.accumulate
accumulate
reversed
itertools
typing.Iterable
Codeship
Sylvester's Theorem
The Centrifuge Problem
yield
tuple
min
bool
not
3
Hermit
Strip and join
Integer Palindrome
bool
or
print
while
False
5
1
More general
Integer Palindrome
bool
or
print
while
False
1
Just numbers
Integer Palindrome
divmod
bool
not
or
while
Watchtower
Recursive
Exploring Calkin-Wilf Tree
tuple
inline-if
print
int
if
3
1
Iterative
Exploring Calkin-Wilf Tree
bin
tuple
inline-if
print
int
4
1
Heap
Exploring Calkin-Wilf Tree
tuple
print
range
int
for
6
1
Not On Map
Looping over the list
Aggregate and Count
dict
print
in
and
list
2
What's the point?
Length of the String
print
len