34
Rcp8jzd
10 31 44
6888/ 7195
Last seen 6 days ago
Member for 4 years, 3 months, 18 days
Difficulty Normal
Missions (419) / Solutions (93)
Best solutions / Newest solutions
Home
Using list comprehension
Non-unique Elements
count
if-comprehension
list-comp
list
comprehension
1
lru_cache
Between Markers
functools.lru_cache
lru_cache
decorator
functools
find
itemgetter("price")
Bigger Price
itemgetter
operator.itemgetter
operator
sort
True
Electronic Station
regex and translation table
Unix Match. Part 1
translate
re.search
search
re
None
4
2
Corresponding angles
Similar Triangles
dot
numpy.arccos
numpy.dot
arccos
numpy.linalg
10
1
os.path.splitext trivializes this task
Sort by Extension
rfind
Tuple
typing.Tuple
List
typing.List
12
Translation dictionnary
Surjection Strings
zip
bool
elif
False
True
First
All Upper II
islower
any
isalpha
bool
comprehension
2
Split filenames then sort
Sort by Extension
attrgetter
operator.attrgetter
collections.namedtuple
namedtuple
rfind
2
Scientific Expedition
capitalize after split('_')
Conversion into CamelCase
capitalize
join
list-comp
split
comprehension
First
Morse Clock
zfill
format
replace
join
list-comp
numpy boolean array
Cipher Map
empty
numpy.empty
numpy.rot90
rot90
numpy
1-liner
Secret Message
isupper
join
if-comprehension
comprehension
str
1
regular expression
The Hidden Word
IGNORECASE
re.IGNORECASE
re.search
search
enumerate
1
First
Pangram
ascii_lowercase
string.ascii_lowercase
collections.Counter
Counter
string
1
First
The Most Wanted Letter
UNICODE
re.UNICODE
itemgetter
operator.itemgetter
operator
1
O'Reilly
bools are ints
Majority
bool
sum
list
len
1
2
next can take more than one argument
The Hollow Diamond
iter
rstrip
next
ascii_lowercase
string.ascii_lowercase
4
2
groupby
Compress List
groupby
itertools.groupby
itertools
typing.Iterable
Iterable
1
strptime, strftime
Time Converter (12h to 24h)
time.strftime
time.strptime
strftime
time
strptime
2
Brute force, itertools.product
Loading Cargo
itertools.product
product
itertools
zip
min
1
list comprehension
Chunk
math.ceil
ceil
math
typing.Iterable
Iterable
First
Remove All After
ValueError
index
typing.Iterable
Iterable
except
Incinerator
Warrior parent class + class atributes
Army Units
classmethod
class
decorator
f-string
8
mediator design pattern
Dialogues
class
f-string
None
lower
in
15
First
The Weapons
classmethod
class
staticmethod
property
super
1
Warlords messing up armies
The Warlords
vars
setattr
classmethod
class
getattr
Mine
First
Can Balance
divmod
enumerate
typing.Iterable
Iterable
not
2
1
Zebras
Matrix "Hatching"
flipud
numpy.flipud
diagonal
numpy.diagonal
numpy.array
4
numpy.linalg.det
Determinant
numpy.linalg
linalg
numpy
round
10
Is morse uniquely decipherable?
Count Morse
startswith
iter
next
set
not
11
1
Counter stack
Chemical Analysis
isdecimal
raise
collections.Counter
Counter
ValueError
From math import solution
The Greatest Common Divisor
as
2
First
The Greatest Common Divisor
math.gcd
gcd
math
for
2
First
Aggregate by Operation
case
match-case
ZeroDivisionError
collections.defaultdict
defaultdict
One-liner
Replace with Biggest
itertools.accumulate
accumulate
reversed
itertools
typing.Iterable
Simple list of letters
Adjacent Letters
pop
join
and
append
else
First
Caesar Cipher (decryptor)
string.index
ascii_lowercase
string.ascii_lowercase
as
string
Ice Base
Convolution with 2x2 array
Counting Tiles
scipy.convolve2d
scipy.signal
signal
mgrid
numpy.mgrid
1
1
Regex
Find Quotes
findall
re.findall
r-string
re
2
1
scipy.signal.correlate2d
Identify Block
scipy.signal.correlate2d
correlate2d
scipy
numpy.rot90
rot90
5
4
First
Morse Encoder
lower
join
append
list-comp
split
10
1
First
Count Chains
Tuple
typing.Tuple
copy
add
remove
First
Clock Angle
map
min
abs
split
int
Alice In Wonderland
Dijkstra
Digits Doublets
set-comp
is
dict-comp
float
remove
2
1
datetime
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
4
Stack of flooded areas
Flood Area
collections.namedtuple
namedtuple
collections
List
typing.List
7
1
nested list comprehensions
Zigzag Array
List
typing.List
typing
list-comp
range
1
GitHub
Dijkstra algorithm
The Cheapest Flight
collections.defaultdict
defaultdict
dict-comp
keys
float
5
First
Merge Intervals (generator version)
yield
sort
pop
while
elif
12
Dropbox
Short
Hubspot Amulet
numpy.matmul
matmul
itertools.product
product
numpy
1
2
itertools.product
Nonogram Row
itertools.product
product
copy
all
any
20
divmod
Speech Module
divmod
elif
else
if
1
PyCon TW
Inspired from mission "calculate islands"
Fused Cubes
collections.deque
deque
itertools.product
product
yield
3
1
Numpy solver
How Much Gold
numpy.linalg
linalg
numpy.zeros
zeros
Fraction
12
Decreasing substring length
Double Substring
in
range
len
for
if
1
copy.deepcopy()
Network Attack
copy.deepcopy
deepcopy
copy
all
break
4
Breadth-first search on new islands
Calculate Islands
union
collections.deque
deque
add
collections
Storage
class Hex
Hexagon Spiral
class
math.floor
floor
divmod
isinstance
Numpy built-in functions
Weak Point
argmin
numpy.argmin
numpy.array
array
numpy
First
Group Equal consecutive
enumerate
not
append
for
if
Maya
Newtonian movement
Inertia
reverse
collections.deque
deque
itertools.product
product
4
First
House of Mirrors
Dict
typing.Dict
Ellipsis
class
raise
5
Rectangle filler
Find Rectangles
isqrt
math.isqrt
Exception
raise
iter
13
HubSpot
3 steps with complex calculations
Inscribe a Contour
conj
numpy.conj
imag
numpy.imag
numpy.real
2
Exact solution, Markov chain
Expected Dice
eye
numpy.eye
delete
numpy.delete
numpy.ones
8
First
Repeating Decimals
math.floor
floor
divmod
keys
pass
10
1
First
Weekly Calendar
datetime.timedelta
timedelta
date
datetime.date
datetime
14
First
Supply Line
string.index
ascii_uppercase
string.ascii_uppercase
itertools.product
product
Blizzard
Regex
Stressful Subject
endswith
re.search
search
upper
isupper
19
Rock
Dynamic programming, O(benches²)
Park Benches
values
items
tuple
max
if-comprehension
1
1
Backtracking, filling the most constrained words first
Crossword Solver
fullmatch
re.fullmatch
class
rfind
Tuple
4
2
Simple iterative solution
Fibonacci Spiral's End
range
list
int
for
15
Nested defaultdict
Web Log Sessions
splitlines
datetime.strptime
strptime
collections.defaultdict
defaultdict
16
1
Exact solution using lambertw
Super Root
lambertw
scipy.special.lambertw
scipy
math.log
log
1
Shelter
not any difference
Pattern Recognition
numpy.array
array
itertools.product
product
numpy
11
Point class
The Lantern Festival
class
f-string
add
index
break
Eulerian graph theory
One line Drawing
collections.defaultdict
defaultdict
keys
add
items
TypeError exception
Completely Empty
TypeError
all
except
try
False
1
Codeship
BFS: brute force search
The 88th Puzzle
collections.deque
deque
Tuple
typing.Tuple
add
1
1
Formula from https://mathworld.wolfram.com/Dice.html
Probably Dice
math.comb
comb
float
math
sum
7
Card namedtuple
Texas Referee
collections.namedtuple
namedtuple
collections.defaultdict
defaultdict
reversed
8
Coin flipping
Reversi: Othello Moves
add
sort
abs
break
set
10
State updates
Rolling 🎲!
case
match-case
range
int
str
18
Dijkstra
Bats Bunker
math.hypot
hypot
math.sqrt
sqrt
keys
1
Hermit
sympy.expand does the job
Simplification
expand
sympy.expand
sympy
replace
str
16
1
Easy as pie
Backspace Apply
else
str
for
if
Ctrl + F
Keywords Finder
rf-string
escape
re.escape
finditer
re.finditer
First
Count Consecutive Summers
math.ceil
ceil
math.sqrt
sqrt
math
Watchtower
solve with backtracking
Magic Square
fliplr
numpy.fliplr
numpy.where
where
class
1
1
scipy magic 🧙‍♂️
Convex Hull
scipy.spatial.ConvexHull
ConvexHull
scipy
insert
index
14
bisect_left for finding the right links
Ethernet Ring Dimensioning
bisect.bisect_left
bisect_left
bisect
math.ceil
ceil
Find the key then decrypt
Vigenere Cipher
string.index
ascii_uppercase
string.ascii_uppercase
reversed
as