27
karlian
11 30 46 Leader of the month
4059/ 4195
Eduardo Tsen
Last seen 1 year ago
Member for 2 years, 13 days
Difficulty Normal
Missions (249) / Solutions (239)
Best solutions / Newest solutions
Initiation
rstrip
End Zeros
rstrip
int
str
len
17
2
lstrip
Beginning Zeros
lstrip
int
str
len
Counter.most_common()
The Most Frequent
collections.Counter
Counter
collections
break
list
max
Max Digit
max
int
str
abs
Nearest Value
map
abs
set
lambda
sorted
plain
Multiply (Intro)
1
re.{findall,sub}
Split Pairs
re.sub
sub
findall
re.findall
r-string
all + comprehension
All Upper I
all
isupper
isalpha
bool
if-comprehension
1
upper + endswith
Correct Sentence
endswith
upper
inline-if
str
Home
slice & starmap
Split List
slice
itertools.starmap
starmap
divmod
as
replace & split
First Word
replace
split
str
finditer + islice
Second Index
re.start
start
re.Match
Match
islice
2
str.replace
Right to Left
tuple
map
replace
lambda
join
double split
Morse Decoder
capitalize
get
map
join
list-comp
1
triplewise
Three Words
itertools.tee
tee
next
all
any
substitute plurals
Date and Time Converter
datetime.strptime
strptime
re.sub
sub
datetime.datetime
Counter.most_common()
Bigger Price
collections.Counter
Counter
dict-comp
dict
collections
2
2x Counter
Sort Array by Element Frequency
collections.Counter
Counter
dict-comp
collections
comprehension
enumerate
Even the Last
enumerate
inline-if
sum
if-comprehension
list
none slices
Between Markers
find
None
not
or
inline-if
timedelta
Sun Angle
typing.Union
Union
datetime.timedelta
timedelta
datetime
counter & itemgetter
Popular Words
itemgetter
operator.itemgetter
operator
collections.Counter
Counter
heapq.nlargest()
Bigger Price
heapq.nlargest
nlargest
heapq
lambda
list
precalculated
Pawn Brotherhood
yield
f-string
dict-comp
chr
any
Electronic Station
breadth first search
Remove Brackets
collections.deque
deque
collections
pop
while
8
@functools.cache
Mathematically Lucky Tickets
cache
functools.cache
union
decorator
functools
9
str.translate
Surjection Strings
translate
str
'list' object has no attribute 'find'
Words Order
ValueError
all
map
index
bool
1
apply verifiers
Acceptable Password II
filter
all
map
isdigit
bool
methodcaller
Boolean Algebra
methodcaller
operator.methodcaller
class
operator
not
check if all sides are proprtional
Similar Triangles
operator.truediv
truediv
dist
math.dist
itertools.starmap
ray trace
Inside Block
dist
math.dist
Ellipsis
chain
itertools.chain
splitext
Sort by Extension
rfind
List
typing.List
typing
or
re.fullmatch
Unix Match. Part 2
fullmatch
re.fullmatch
escape
re.escape
re.sub
stack
Brackets
pop
index
in
elif
False
1
apply verifiers
Acceptable Password IV
filter
all
any
map
isdigit
itertools.pairwise
Ascending List
itertools.pairwise
pairwise
all
itertools
typing.Iterable
disjoint set
Can You Pass?
class
union
itertools.product
product
itertools
re.fullmatch
Unix Match. Part 1
fullmatch
re.fullmatch
escape
re.escape
re
str.isupper
All Upper II
isupper
str
math.prod
Digits Multiplication
math.prod
prod
divmod
yield
math
apply verifiers
Acceptable Password V
filter
all
any
find
map
apply verifiers
Acceptable Password VI
filter
all
any
find
map
apply verifiers
Acceptable Password III
filter
all
map
isdigit
bool
compare lists
Find Sequence
chain
itertools.chain
yield
itertools
List
Counter
Verify Anagrams
collections.Counter
Counter
collections
replace
lower
Scientific Expedition
match case
Sum by Type
case
match-case
Tuple
typing.Tuple
typing
2
3
with StringIO
Conversion from CamelCase
StringIO
io
io.StringIO
with
partition
14
3
min or max
The Most Wanted Letter
filter
isalpha
min
set
lower
format and translate
Morse Clock
translate
chain
itertools.chain
format
itertools
time + format
Time Converter (24h to 12h)
datetime.fromisoformat
fromisoformat
datetime.time
time
format
match-case
YAML. More Types
case
match-case
splitlines
strip
dict-comp
avoid text transformation
Pangram
ascii_uppercase
string.ascii_uppercase
ascii_lowercase
string.ascii_lowercase
string
unicodedata
Remove Accents
category
unicodedata.category
normalize
unicodedata.normalize
unicodedata
dict comprehension
YAML. Simple Dict
splitlines
strip
dict-comp
map
isdigit
next
Bird Language
iter
next
yield
join
in
map + cycle (wrong)
Caps Lock
cycle
itertools.cycle
re.compile
compile
r-string
3
map + cycle (corrected)
Caps Lock
cycle
itertools.cycle
itertools
upper
map
1
row by row, col by col
The Hidden Word
LookupError
itertools.zip_longest
zip_longest
splitlines
raise
groupby
Call to Home
slice
itemgetter
operator.itemgetter
groupby
itertools.groupby
Enum
Follow Instructions
Enum
enum.Enum
enum
operator.add
class
index
Goes Right After
ValueError
pass
index
bool
except
re.split()
Conversion into CamelCase
title
re.split
r-string
map
re
intersection 2
Common Words
functools.wraps
wraps
locals
intersection
decorator
processor class
Letter Queue
methodcaller
operator.methodcaller
contextlib.suppress
suppress
contextlib
issuperset
Striped Words
string.translate
issuperset
fromkeys
translate
re.sub
re.sub
Secret Message
rf-string
ascii_uppercase
string.ascii_uppercase
re.sub
sub
itertools.{chain, compress, cycle, starmap}
Cipher Map
compress
itertools.compress
itertools.starmap
starmap
cycle
intersection
Common Words
functools.wraps
wraps
locals
decorator
functools
O'Reilly
datetime comparison
Lightbulb Start Watching
Optional
typing.Optional
datetime.datetime
datetime
List
12
1
heapq
The Final Stone
heapify
heapq.heapify
heappush
heapq.heappush
heappop
20
more
Lightbulb More
case
match-case
itertools.zip_longest
zip_longest
typing.Union
track successors
Determine the Order
collections.fromkeys
OrderedDict
collections.OrderedDict
fromkeys
union
1
check operation
Lightbulb Operating
case
match-case
itertools.zip_longest
zip_longest
typing.Union
Counter + sorted
Frequency Sorting
collections.Counter
Counter
collections
List
typing.List
zero or next
Sort Except Zero
iter
next
filter
typing.Iterable
Iterable
1
filter by state
Multiple Lightbulbs
case
match-case
itertools.zip_longest
zip_longest
typing.Union
timedelta
Lightbulb Intro
datetime.total_seconds
total_seconds
operator.sub
iter
operator
4
strftime/strptime
Time Converter (12h to 24h)
time.strftime
time.strptime
strftime
time
strptime
zip_longest
Lightbulb End Watching
itertools.zip_longest
zip_longest
Optional
typing.Optional
datetime.datetime
take until
Remove All After
array.array
array
yield
typing.Iterable
Iterable
1
brute force - all combinations
Loading Cargo
operator.sub
copy.copy
itertools.starmap
starmap
combinations
recurse with map
How Deep
case
match-case
tuple
map
max
iter with callable
Chunk
islice
itertools.islice
functools.partial
partial
iter
recur items
The Flat Dictionary
case
match-case
yield
f-string
dict
split when
Reverse Every Ascending
contextlib.suppress
suppress
contextlib
with
IndexError
yield from
Flatten a List
yield
isinstance
list
else
for
sliding window
Median of Three
islice
itertools.islice
collections.deque
deque
iter
itertools
Compress List
ne
operator.ne
itertools.pairwise
pairwise
itertools.starmap
shift len
Majority
bool
sum
list
len
combinations
Count Inversions
gt
operator.gt
combinations
itertools.combinations
operator
chain
Xs and Os Referee
chain
itertools.chain
re.search
search
r-string
statistics.median
Median
as
Incinerator
sort 'em up
The Warlords
SimpleNamespace
types.SimpleNamespace
dataclasses.field
field
types
proper dataclasses
The Vampires
UserList
collections.UserList
itertools.pairwise
pairwise
dataclass
hasattr/setattr/getattr
The Weapons
dataclasses.field
field
itertools.pairwise
pairwise
setattr
last fight wins
Straight Fight
UserList
collections.UserList
dataclasses.field
field
itertools.pairwise
regex tokenizer
Hacker Language
class
getattr
staticmethod
re.compile
compile
geometric formulas
Geometry Figures
AttributeError
class
math.pi
pi
decorator
1
RegularPolygon base class
Geometry Figures
dataclass
dataclasses
dataclasses.dataclass
AttributeError
class
dummy heal (pass)
The Healers
dataclasses.field
field
itertools.pairwise
pairwise
dataclass
metaclass & ABC
Army Units
functools.partialmethod
partialmethod
vars
ABC
abc.ABC
linked list
The Lancers
itertools.pairwise
pairwise
dataclass
dataclasses
dataclasses.dataclass
class decorator
Capital City
class
None
not
if
sizzle
Microwave Ovens
class
staticmethod
divmod
match
re.match
partialmethod
Dialogues
functools.partialmethod
partialmethod
class
staticmethod
decorator
Ich glotz TV
Voice TV Control
case
match-case
class
TypeError
raise
dataclass
Every Person is Unique
vars
dataclass
dataclasses
dataclasses.dataclass
class
observer pattern
Party Invitations
class
f-string
remove
append
for
short and simple
3 Chefs
class
f-string
UserList
Text Editor
UserList
collections.UserList
class
f-string
collections
add hit method
The Defenders
UserList
collections.UserList
itertools.pairwise
pairwise
itertools.starmap
iterator as state
Multicolored Lamp
cycle
itertools.cycle
class
next
itertools
last fight wins
Army Battles
UserList
collections.UserList
itertools.pairwise
pairwise
itertools.starmap
defaultdict(set)
Friends
class
collections.defaultdict
defaultdict
keys
add
simple class
Building Base
class
raise
ValueError
format
or
minimize code repetition
The Warriors
itertools.pairwise
pairwise
cycle
itertools.cycle
class
Mine
cube coordinates
Find Enemy
dataclass
dataclasses
dataclasses.dataclass
classmethod
class
3
backtrack generator
Fast Train
lt
operator.lt
itertools.repeat
repeat
itertools.starmap
7
recursive with adjacency matrix
Domino Chain
array.array
bytes
array
any
map
just math
Escape
math.inf
inf
round
List
typing.List
graphs
What Is Wrong With This Family?
difference
all
add
zip
map
simple deduction
The Einstein Problem-Lite
globals
difference
dict-comp
upper
zip
for loop
Chess Knight
string.index
chain
itertools.chain
itertools.product
product
gaussian elimination
Determinant
functools.reduce
reduce
functools
round
continue
greedy
Color Map
setdefault
update
tuple
enumerate
min
sort padded
Bigger Together
islice
itertools.islice
cycle
itertools.cycle
itertools
brute force
Can Balance
itertools.starmap
starmap
itertools.count
mul
operator.mul
re.sub
Currency Style
re.sub
sub
r-string
re
replace
backtrack
Disposable Teleports
class
collections.defaultdict
defaultdict
copy
all
rsplit
Cut Sentence
functools.wraps
wraps
rsplit
decorator
functools
binary gcd algorithm
The Greatest Common Divisor
Ellipsis
min
break
while
int
int.bit_count
Binary Count
int
elif
Fizz Buzz
elif
else
int
str
if
itertools.product
Moore Neighbourhood
itertools.product
product
itertools
or
sum
Ice Base
find-union
Count Chains
union
combinations
itertools.combinations
Tuple
typing.Tuple
10
calculate lookup
Identify Block
itertools.pairwise
pairwise
itertools.accumulate
accumulate
divmod
df-search connectd components
Count Chains
collections.defaultdict
combinations
defaultdict
itertools.combinations
Tuple
bottom up
Making Change
math.inf
inf
math
min
None
simple lookup
Morse Encoder
get
map
lower
join
groupby
Long Repeat
groupby
itertools.groupby
itertools
max
list
map contains
Monkey Typing
contains
operator.contains
functools.partial
partial
operator
finditer
Find Quotes
finditer
re.finditer
r-string
re
list-comp
itertools
Feed Pigeons
itertools.accumulate
accumulate
itertools.takewhile
takewhile
itertools.count
reduce
Oil Pie
functools.partial
partial
Fraction
fractions.Fraction
fractions
cached power
Counting Tiles
cache
functools.cache
math.floor
floor
itertools.product
Δ_θ
Clock Angle
map
abs
inline-if
split
int
min/max with default
The Most Numbers
min
max
1
subtractive
Reverse Roman Numerals
itertools.pairwise
pairwise
chain
itertools.chain
get
additive
Reverse Roman Numerals
functools.reduce
reduce
functools
get
items
groupby
Largest Rectangle in a Histogram
le
operator.le
functools.partial
partial
from_iterable
disjoint set
How to Find Friends
class
union
find
while
split
just lookup
Roman Numerals
f-string
tuple
map
int
max - min
The Most Numbers
min
max
inline-if
len
1
Alice In Wonderland
strptime + weekday
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
1
collections.deque
Middle Characters
collections.deque
deque
collections
pop
join
1
generator
Swap Nodes
Ellipsis
StopIteration
iter
next
yield
bits and bytes
IP Network: Route Summarization
itertools.zip_longest
zip_longest
next
format
itertools
list comprehension
Zigzag Array
List
typing.List
typing
lambda
inline-if
Counter
The Fastest Horse
itemgetter
operator.itemgetter
operator
collections.Counter
Counter
substring generator
Long Non Repeat
yield
enumerate
max
in
and
zip
Transposed Matrix
List
typing.List
zip
map
typing
GitHub
loops
Long Repeat Inside
yield
pass
max
while
range
plain generator
Create Intervals (generator version)
iter
next
yield
None
sorted
sort input
The End of Other
combinations
itertools.combinations
endswith
any
itertools
dijkstra
The Cheapest Flight
contains
operator.contains
math.inf
inf
functools.partial
calendar
The Most Frequent Weekdays
calendar.__getitem__
__getitem__
multimode
statistics.multimode
calendar.monthrange
dfs with namedtuple
Open Labyrinth
random.sample
sample
hash
class
collections.namedtuple
Dropbox
monotonically increasing product
Grille Cipher Attack
compress
itertools.compress
itertools.accumulate
accumulate
itertools.count
4
distribute
Scytale Encryption
Optional
typing.Optional
next
filter
map
9
1
spaces
Text Formatting
operator.concat
concat
itertools.repeat
repeat
case
12
calculate permutation
Rotating Grille Cipher
compress
itertools.compress
itertools.accumulate
accumulate
itertools.count
maketrans + swapcase
Atbash Cipher
swapcase
ascii_letters
string.ascii_letters
translate
string
101
Speech Module
chain
itertools.chain
f-string
itertools
map
literal_eval
Three Points Circle
ast.literal_eval
literal_eval
ast
Decimal
decimal.Decimal
decimal
Friendly Number
ROUND_DOWN
decimal.ROUND_DOWN
Decimal
decimal.Decimal
decimal
SequenceMatcher
The Longest Palindromic
SequenceMatcher
difflib.SequenceMatcher
difflib
PyCon TW
simplified reduction
How Much Gold
items
inline-if
sum
in
comprehension
10
1
for line in TABLE
Ryerson Letter Grade
splitlines
strip
elif
and
split
1
sympy.solve
How Much Gold
sympy.solve
sympy.symbols
symbols
solve
sympy
FusingCubes
Fused Cubes
operator.sub
classmethod
itertools.starmap
starmap
isdisjoint
groupby
Sum Consecutives
groupby
itertools.groupby
itertools
sum
comprehension
1
call stack generator
Digit Stack
startswith
yield
map
None
sum
1
raytrace
Building Visibility
Ellipsis
itemgetter
operator.itemgetter
operator
add
dijkstra
Express Delivery
math.inf
inf
collections.deque
deque
collections.defaultdict
top-down
Golden Pyramid
max
len
if
1
cocktail shaker sort
Robot Sort
join
while
append
range
list
brute force
Double Substring
in
range
len
for
if
disjoint set
Calculate Islands
class
union
itertools.product
product
filter
dijkstra
Network Attack
math.inf
inf
math
enumerate
min
Counter
House Password
collections.Counter
Counter
values
islower
collections
bottom-up
Golden Pyramid
enumerate
max
list-comp
range
comprehension
fun array
Simple Areas
math.pi
pi
math.sqrt
sqrt
math
Storage
count lines, not cakes
The Rows of Cakes
math.nan
nan
combinations
itertools.combinations
collections.Counter
6
1
f-string
Exec Quine
repr
f-string
cube coordinates
Hexagon Spiral
islice
itertools.islice
itertools.count
class
collections.namedtuple
fix cycle by cycle
Mind Switcher
extend
keys
get
not
while
yet another dijkstra
Digging a Canal
contains
operator.contains
math.inf
inf
functools.partial
harvesine formula
Earth Distances
math.atan2
atan2
math.radians
radians
math.cos
class with OrderedDict
Playfair Cipher
contains
operator.contains
collections.fromkeys
functools.partial
partial
itertools
English to Braille Translator
itertools.repeat
repeat
islice
itertools.islice
functools.partial
Sieve of Eratosthenes
Restricted Prime
while
False
True
int
if
just math
Square Spiral
math.ceil
ceil
math.sqrt
sqrt
math
groupby
Group Equal consecutive
groupby
itertools.groupby
itertools
list-comp
list
@functools.cache
Moria Doors
cache
functools.cache
collections.fromkeys
OrderedDict
collections.OrderedDict
sliding window
Saw the Stick
itertools.accumulate
accumulate
itertools.count
collections.deque
deque
cmp_to_key
Weak Point
cmp_to_key
functools.cmp_to_key
functools
zip
map
__getitem__
Weak Point
zip
map
min
sum
range
combinations_with_replacement
Skew-symmetric Matrix
combinations_with_replacement
itertools.combinations_with_replacement
all
itertools
range
HubSpot
str.splitlines
Non Empty Lines
splitlines
strip
sum
if-comprehension
comprehension
1
factor table
Square Board
divmod
Tuple
typing.Tuple
typing
int
disjoint set
New Cities
class
union
values
find
set
sets
New Cities
itertools.tee
tee
isdisjoint
chain
itertools.chain
disjoint set
Node Disconnected Users
class
union
values
find
or
recursion
Restricted Sum
not
inline-if
Blizzard
geometry (O(n))
Mountain Scape
itertools.pairwise
pairwise
itertools.accumulate
accumulate
Tuple
4
Knuth's Dancing Links (DLX) - pretty fast
Sudoku Solver
functools.partialmethod
partialmethod
attrgetter
operator.attrgetter
isdisjoint
6
2
no factorial
Reversed Permutation Index
divmod
map
pop
typing.Iterable
Iterable
7
1
Knuth's Dancing Links (DLX) using dicts
Sudoku Solver
isdisjoint
itertools.product
product
collections.defaultdict
defaultdict
7
1
no factorial
Permutation Index
Tuple
typing.Tuple
zip
index
typing
10
1
prim's
Connect Stars
dataclasses.field
field
heapify
heapq.heapify
math.inf
11
stacking rectangles
Spaceship Landing Strip
enumerate
pop
set
max
inline-if
13
sum (lots of) little mountains
Mountain Scape
Tuple
typing.Tuple
set-comp
List
typing.List
18
escaped quote
Palindromic Palindrome
lambda
multi-dijkstra
Useless Flights
math.inf
inf
setdefault
itemgetter
operator.itemgetter
track heights and widths
Spaceship Landing Strip
enumerate
set
max
inline-if
in
itertools.product
Rectangles Union
itertools.product
product
Tuple
typing.Tuple
itertools
1
dilate and flood fill
Safe Coasts
slice
case
match-case
class
itertools.product
datetime.date
The First Working Day
datetime.fromisoformat
fromisoformat
datetime.timedelta
timedelta
date
recursive edit with SequenceMatcher
String Conversion
SequenceMatcher
difflib.SequenceMatcher
difflib
insert
break
disjoint set
Radiation Search
class
union
itertools.product
product
collections.defaultdict
recursive generator
Stair Steps
yield
max
else
len
if
just compare
Min and Max
iter
next
is
None
inline-if
1
gauss
Unlucky Days
divmod
or
and
int
count weeks and rest
Weekend Counter
divmod
sum
in
range
comprehension
transform to regex
Stressful Subject
rf-string
re.compile
compile
functools.reduce
reduce
law of cosines
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
Shelter
floor < sqrt < ceil
The Nearest Square Number
math.floor
floor
pow
math.ceil
ceil