47
przemyslaw.daniel
27 48 60 Leader of the month
19691/ 20779
Bla Bla Bla bla
Last seen 11 hours ago
Member for 8 years, 1 month, 8 days
Difficulty Normal
I don't count the chickens before they hatch but I do divide the skin while it’s still on the bear despite the fact it makes no sens. Or maybe it does...

Missions (475) / Solutions (568)
Best solutions / Newest solutions
Initiation
36-liner: 7 easy examples
End Zeros
itertools.takewhile
takewhile
next
strip
re.search
1
104
1-liner: shortest
Multiply (Intro)
int
1
11
1-liner: correct like this
Correct Sentence
upper
lambda
1
7
15-liner: lightning - up to 10**10
Number Length
bisect.bisect
bisect
1
5
18-liner: by primes for fun
All Upper I
prime
sympy.prime
contextlib.suppress
suppress
contextlib
1
5
1-liner: next
Beginning Zeros
next
enumerate
lambda
if-comprehension
comprehension
2
4
1-liner: double bracket
Is Even
lambda
False
True
2
2
6-liner: without str
Number Length
while
int
3
26
30-liner: swift
End Zeros
not
while
if
3
9
2-liner: clean
The Most Frequent
max
count
5
2-liner: 1-1
All the Same
all
zip
comprehension
6
1
29-liner: no division and mutiplication
Max Digit
max
while
6
1
1-liner: set it up
All the Same
set
lambda
in
len
7
1
2-liner: count
All the Same
not
count
or
len
19
1
4-liner: divmod recursive
Max Digit
divmod
map
max
if
1
1-liner: double lambda
Nearest Value
min
abs
lambda
1
1-liner: crazy
First Word (simplified)
find
lambda
len
3-liner: cleanest
Easy Unpack
1-lienr: zipped_
Split Pairs
zip
lambda
list-comp
comprehension
1
1-liner: anti-condition lambda
Remove All Before
index
lambda
or
in
and
2-liner: trivial
Count Digits
map
isdigit
sum
int
str
6-liner: rotate
Replace First
collections.deque
deque
collections
2-liner: trivial
Sum Numbers
isdigit
sum
and
split
comprehension
1-liner: between kappa and mu
Between Markers (simplified)
rfind
find
lambda
2-liner: slice it
Backward String
slice
None
lambda
Home
2-liner: cleanest
Bigger Price
lambda
sorted
True
1
26
1-liner: no import just like this
First Word
lambda
join
in
split
comprehension
1
13
3-liner: find only
Between Markers
find
len
1
13
3-liner: based on Tinus_Trotyl's
Morse Decoder
capitalize
replace
join
split
comprehension
1
4
21-liner: first proposal with no bechmarks
Bigger Price
math.log
log
math
min
max
1
3
23-liner: mathematically
Changing direction
argrelmax
argrelmin
scipy.signal.argrelmax
scipy.signal.argrelmin
scipy
1
1-liner: replace & find
Second Index
find
None
replace
lambda
count
2
5
1-liner: recursive
Backward Each Word
lambda
inline-if
3
1-liner: 2002
Popular Words
dict-comp
lower
lambda
count
split
3
1
1-liner: 68 chars, nickie's improved
Three Words
isdigit
lambda
join
in
split
5
3
1-liner: 59 chars
Duplicate Zeros
lambda
sum
list-comp
comprehension
5
2
1-liner: change the base (83 chars)
Pawn Brotherhood
set-comp
bool
sum
comprehension
int
6
1
6-liner: regex
Between Markers
re.search
search
re
replace
inline-if
6
1
2-liner: no import
Changing direction
zip
lambda
sum
if-comprehension
list-comp
6
1-liner: divide and conquer
Split List
lambda
len
7
2
1-liner: look around
Duplicate Zeros
eval
re.sub
sub
r-string
re
7
16-liner: precompute occurrences and indexes, sort only unique data
Sort Array by Element Frequency
extend
min
lambda
sorted
append
12
2
7-liner: datetime sometime
Date and Time Converter
f-string
date
datetime.date
datetime
map
15
2
First
Non-unique Elements
count
if-comprehension
list-comp
comprehension
5-liner: simple
Sun Angle
round
map
split
int
if
32-liner: do it in three ways
Missing Number
itertools.pairwise
pairwise
itertools
List
typing.List
1-liner: sort it out
Sort Array by Element Frequency
index
lambda
count
sorted
20-liner: simple
Morse Decoder
rstrip
capitalize
split
for
10
4-liner: replace & split
First Word
replace
split
1-liner
Days Between
abs
lambda
16-liner: 3 different examples
Backward Each Word
groupby
itertools.groupby
re.sub
sub
r-string
1-liner
Three Words
r-string
bool
lambda
1-liner
Right to Left
replace
lambda
join
1-liner
Even the Last
lambda
inline-if
sum
len
Electronic Station
11-liner: lightning
Brackets
pop
not
or
in
False
1
6
2-liner: blob
Can You Pass?
divmod
set-comp
any
enumerate
lambda
1
1
1-liner: 75 chars
Sort by Extension
rfind
lambda
sorted
1
1
1-liner: shorty
Ascending List
set
lambda
sorted
2
6
13-liner: get the cool shoe shine
Can You Pass?
set-comp
pop
set
while
if-comprehension
2
30-liner: supersonic
Remove Brackets
functools.lru_cache
lru_cache
combinations
itertools.combinations
decorator
2
7
8-liner: blocked
Inside Block
any
lambda
or
sum
if-comprehension
2
2
1-liner: 92 cursed
Brackets
re.sub
sub
re
lambda
inline-if
3
4-liner: boring
Surjection Strings
zip
replace
for
5
1
1-liner: 51 chars of madness
Boolean Algebra
ord
lambda
6
3
2-liner: verify me
Verify Anagrams
upper
replace
lambda
sorted
7
2
14-liner: bloody clean
Blood distribution
collections.defaultdict
defaultdict
dict
collections
map
7
7-liner: sets
Words Order
index
bool
set
sorted
False
9
3
6-liner: compare edges (no import)
Similar Triangles
set-comp
zip
sorted
comprehension
len
12
8
5-liner: re params
Sort by Extension
re.sub
sub
r-string
re
lambda
17-liner: exponential
Remove Brackets
format
zip
pop
max
not
1
14-liner: cleanest for any sequence length
Find Sequence
itertools.product
product
set-comp
any
itertools
1
3-lienr: sum it
Acceptable Password IV
map
isdigit
bool
sum
str
Mathematically Lucky Tickets
Mathematically Lucky Tickets
eval
itertools.product
product
set-comp
itertools
3-liner: boolean algebra
Boolean Algebra
int
5-liner: Shoebox
Brackets
any
find
replace
join
while
2-liner: isupper and isaplha
All Upper II
all
any
map
isupper
isalpha
1-liner
Digits Multiplication
eval
replace
lambda
join
str
1
Scientific Expedition
1-liner: prima aprilis
Follow Instructions
lambda
count
list-comp
comprehension
1
3
1-liner: compact
Time Converter (24h to 12h)
f-string
lambda
int
1
4
1-liner: lambda
Conversion from CamelCase
re.sub
sub
r-string
lstrip
re
1
2
1-liner: no zip
Fuzzy String Matching
min
abs
lambda
sum
list-comp
1
1
2-liner: reduce
Beat The Previous
not
lambda
or
inline-if
int
1
7
5-liner: reeee
YAML. Simple Dict
findall
re.findall
dict-comp
re
isdigit
2
1-liner: split & capitalize
Conversion into CamelCase
capitalize
map
lambda
join
split
2
2-liner: using sets
Common Words
set
sorted
join
split
list
2
3-liner: against the rules
Call to Home
map
set
max
count
sum
2
10-liner: sub only
YAML. More Types
eval
re.sub
sub
f-string
strip
2
1
18-liner: no ifs
Convert and Aggregate
Dict
typing.Dict
classmethod
class
update
2
4-liner: clean with no import
Time Converter (24h to 12h)
f-string
map
split
int
3
9
2-liner: ... --- ...
Morse Clock
divmod
format
sum
list-comp
split
3
1
1-liner: eval
Letter Queue
eval
lambda
inline-if
join
in
3
32-liner: deque
Water Sort Game
itertools.permutations
permutations
collections.deque
deque
all
3
3-liner: r(r(r(v)))
Cipher Map
divmod
lambda
sorted
join
list-comp
4
1
2-liner: aeiouy
Bird Language
r-string
5
1
2-liner: NFKD
Remove Accents
not
join
if-comprehension
list-comp
comprehension
7
2
2-liner: just count them
Caps Lock
upper
enumerate
lambda
count
join
9
1
4-liner: re
Secret Message
findall
re.findall
re
join
2
7-liner: abs sorting with __lt__
Absolute Sorting
class
abs
sorted
list-comp
list
7-liner: no import
Convert and Aggregate
dict-comp
get
dict
items
tuple
Pangram
Pangram
re.sub
sub
r-string
re
set
4-liner: find them all
Conversion from CamelCase
findall
re.findall
map
re
lower
2
7-liner
Cipher Map
zip
inline-if
join
list-comp
range
5-liner: findall
Striped Words
is
upper
None
sum
list-comp
1
1-liner
The Most Wanted Letter
max
lower
lambda
count
4-liner: just count them
Follow Instructions
count
The Hidden Word
The Hidden Word
ljust
find
zip
enumerate
None
11-liner: recursive
Caps Lock
functools.partial
partial
functools
upper
not
5-liner: manual
Sum by Type
type
is
pop
sum
join
17-liner: non-type-checking
Sum by Type
contextlib.suppress
suppress
contextlib
with
TypeError
O'Reilly
1-liner: compact
Median of Three
zip
lambda
sorted
list-comp
comprehension
1
5
4-liner: compact recursive
The Flat Dictionary
isinstance
dict
items
bool
not
1
1
2-liner: split where diff
Reverse Every Ascending
numpy.split
diff
numpy.diff
numpy.where
where
1
1
1-liner: short recursive
Sum of Digits
lambda
inline-if
1
2
3-liner: *stones
The Final Stone
inline-if
sorted
1
73-liner: K2
Lightbulb More
itertools.zip_longest
zip_longest
typing.Union
Union
Optional
1
2
8-liner: easy
Determine the Order
all
find
replace
set
sorted
2
4
2-liner: eval
Flatten a List
eval
replace
str
2
2
12-liner: np
String-2-Matrix
array_split
numpy.array_split
ascii_uppercase
string.ascii_uppercase
numpy
2
5-liner: easy no import
Time Converter (12h to 24h)
f-string
map
split
int
3
2
11-liner: easiest by stack
The Flat Dictionary
isinstance
dict
items
pop
bool
3
2
56-liner: hacking checkio
Sum of Digits
inspect.builtins
inspect.sys
weakref.os
builtins
weakref
3
6
3-liner: squeeze
Loading Cargo
itertools.permutations
permutations
itertools.product
product
as
3
2-liner: sorted with key
Ordinary Cardinals
map
lambda
count
sorted
list
3
6-liner: lame
String-2-Matrix
divmod
tuple
ord
map
isupper
3
27-liner: combine
Grid Painting
union
itertools.product
product
divmod
combinations
3
1-liner: boring
Frequency Sorting
lambda
count
sorted
4
18-liner: no str, no import, no loop
Integer Palindrome
divmod
bool
or
and
int
5
1-liner: regex 104
Xs and Os Referee
r-string
lambda
join
6
2
5-liner: compressed
Cipher Crossword
next
zip
map
set
sum
7
1-liner: enumerate
Count Inversions
enumerate
lambda
sum
comprehension
9
10-liner: 2 x while
Exploring Wythoff Array
tuple
while
True
int
if
11
3-liner: sorted
Sort Except Zero
pop
lambda
sorted
and
list-comp
13
1-liner: max 99 chars
How Deep
max
lambda
count
range
comprehension
14
1
7-liner: is_ascending
Reverse Every Ascending
inline-if
for
15
13-liner: abc
The Hollow Diamond
center
rstrip
ascii_lowercase
string.ascii_lowercase
as
16
4-liner: x2
Median
sum
sorted
len
17
1
50-liner: split insted of merge
Multiple Lightbulbs
itertools.zip_longest
zip_longest
typing.Union
Union
Optional
16-liner: fast and furious
Lightbulb End Watching
bisect.insort_left
insort_left
bisect
Optional
typing.Optional
1
28-liner: 3 easy examples
The Final Stone
bisect.insort
insort
heapify
heapq.heapify
bisect
1-liner: direct untyped
Lightbulb Intro
zip
lambda
sum
comprehension
1
1-liner: slice it
Chunk
lambda
list-comp
range
comprehension
len
1
1-liner: no if statement
How Deep
type
is
max
lambda
and
7
6-liner: deque
Replace Last
collections.deque
deque
collections
1-liner: anti-condition lambda
Remove All After
index
lambda
or
in
and
3
1-liner: trivial
Majority
lambda
count
True
len
1
1-liner
Index Power
lambda
inline-if
len
1-liner
Median
lambda
sorted
len
Incinerator
40-liner: limited looping
Army Battles
class
staticmethod
property
super
decorator
1
7-liner: awkward
3 Chefs
exec
tuple
split
for
1
1
11-liner: all about the lambda
Text Editor
vars
locals
class
update
format
1
2
29-liner: no looping with property
The Warriors
class
property
super
decorator
min
2
9
26-liner: robot human alter ego
Dialogues
class
None
lambda
join
in
2
1
42-liner: easy
Army Units
class
2
3
6-liner: pancake
Hacker Language
class
f-string
chr
ord
lambda
2
1
27-liner: let's metacook
3 Chefs
class
type
pass
3
29-liner: no name
Every Person is Unique
class
datetime.strptime
strptime
f-string
datetime.datetime
4
1
33-liner: flat
Voice TV Control
class
isinstance
in
str
len
15
Friends
Friends
class
functools.reduce
reduce
functools
remove
20
25-liner: calculate 'em all
Geometry Figures
class
type
pass
round
lambda
1
33-liner: clean no import
Hacker Language
class
chr
format
ord
map
2
20-liner: no fronts no tricks no soap box politics
Party Invitations
class
f-string
remove
for
22-liner: straightforward
Building Base
class
Mine
1-liner: against isalpha()
Caesar Cipher (encryptor)
chr
ord
lambda
join
comprehension
1
4
1-liner: next()
Best Stock
next
values
max
lambda
if-comprehension
1
2
2-liner
Cut Sentence
rstrip
r-string
len
1
7-liner: based on tom-tom's
Find Enemy
ord
zip
abs
max
lambda
1
1
10-liner: easy recursive
Chess Knight
set-comp
chr
ord
map
set
1
8-liner: flying jar
Escape
min
max
or
while
False
1
8-liner: almost easy regex
Chemical Analysis
findall
re.findall
re.search
search
any
1
3-liner: compact
Domino Chain
enumerate
lambda
or
sum
if-comprehension
1
1
2-liner: enumerate next eval
Can Balance
eval
next
f-string
enumerate
not
1
1
1-liner: based on kdim's
Toothpicks
lambda
inline-if
1
14-liner: 2 solutions
Switch Keys to Values
DataFrame
pandas.DataFrame
pandas
Dict
typing.Dict
1
2-liner: Fizz % Buzz
Fizz Buzz
int
str
2
6
7-liner: Sim0000's simplified
What Is Wrong With This Family?
values
dict-comp
set
count
sum
2
4
13-liner: by stack
Chess Knight
set-comp
chr
ord
map
continue
2
2
10-liner: BrianMcleod's simplified
Fast Train
all
zip
lambda
sum
while
2
3
20-liner: razor-sharp
Count Morse
startswith
set-comp
filter
pop
not
2
1
14-liner: imaginary
Matrix "Hatching"
itertools.product
product
collections.defaultdict
defaultdict
values
2
3
6-liner: factor
Checking Perfect Power
sympy.factorint
factorint
sympy
math.gcd
gcd
2
14-liner: easily up to 10**100
Ulam–Warburton Automaton
math.comb
comb
itertools.zip_longest
zip_longest
itertools
2
14
12-liner: substitute groupby
Long Pressed
findall
re.findall
r-string
zip
re
3
17-liner: verify one with another
Collatz Ztalloc
isinstance
None
inline-if
while
int
3
14-liner: yeap
The Einstein Problem-Lite
values
any
continue
lambda
or
4
2
11-liner: ain't nothin but stack
Domino Chain
pop
not
while
if-comprehension
in
4
6-liner: sum and check
Can Balance
enumerate
not
sum
range
comprehension
4
3
6-liner: direct
Fibonacci Poem
strip
pop
or
join
while
4
2
2-liner: diabolic
Bigger Together
map
lambda
sorted
join
int
5
13-liner: recursive
Long Pressed
rf-string
match
re.match
f-string
re
5
1-liner: brackets
Fizz Buzz
lambda
str
6
3
1-liner: come join us
Caesar Cipher (decryptor)
chr
islower
ord
lambda
join
8
2-liner
Moore Neighbourhood
tuple
lambda
sum
comprehension
len
10
1
5-liner: fstring
Ulam–Warburton Automaton
f-string
map
max
sum
range
10
Color Map
Color Map
any
continue
pop
set
not
11
1
21-liner: counted
Ulam-Warburton Automaton Hex
itertools.starmap
starmap
class
itertools.permutations
permutations
11
1-liner: calc
Count Divisibles in Range
lambda
12
11-liner: clean as a whistle
Disposable Teleports
filter
find
pop
replace
set
13
9-liner: dictate
"Lunar" Multiply
itertools.product
product
values
get
dict
13
11-liner: recursive
Cut Into Squares
functools.lru_cache
lru_cache
decorator
functools
min
15
7-liner: __import__
Currency Style
translate
str
for
if
16
13-liner: pop
Postfix Evaluation
isinstance
get
pop
inline-if
list
16
1
1-liner: simplest
Determinant
round
lambda
int
18
1
13-liner: Sim0000's simplified and corrected two fathers case
What Is Wrong With This Family?
values
dict-comp
List
typing.List
bool
2-liner
The Greatest Common Divisor
inline-if
len
4-liner: complex
Can Balance
enumerate
bool
not
inline-if
sum
1
1-liner
Achilles and the Tortoise
lambda
3-liner: let's colour
Moore Neighbourhood
sum
if-comprehension
and
list-comp
comprehension
1-liner
Binary Count
bin
lambda
count
Ice Base
7-liner: based on best Roman Numerals solution
Reverse Roman Numerals
zip
replace
count
split
for
1
8
1-liner: split
Find Quotes
lambda
split
1
1
4-liner: complex plane over and over again
Identify Block
complex
eval
divmod
index
None
1
1
5-liner: easy and finally correct - thanks to Stefan
The Centrifuge Problem
set-comp
bool
not
if-comprehension
in
1
2-liner: max
Colorful Disks
Ellipsis
tuple
max
sum
list-comp
1
13-liner: any k-size square grid
Identify Block
complex
divmod
set-comp
items
zip
2
5
4-liner: re.sub
Reveal the Number
rstrip
float
r-string
None
inline-if
2
1
4-liner: pep compliant
Making Change
min
None
inline-if
if-comprehension
list-comp
2
1-liner: double 71
Long Repeat
max
lambda
if-comprehension
in
range
3
6
1-liner: 121
Reverse Roman Numerals
zip
index
lambda
sum
comprehension
3
7-liner: sympy
Write Quadratic Equation
Symbol
sympy.Symbol
expand
sympy.expand
sympy
3
1-liner: sss...
Move Zeros
bool
lambda
sorted
True
3
1-liner: enough is enough
When "k" is Enough!
enumerate
lambda
count
if-comprehension
list-comp
3
6-liner: price it
Making Change
min
None
inline-if
range
for
4
1
The Raven (+2-liner)
Clock Angle
exec
chr
isupper
isalpha
join
5
1
1-liner: findall
Find Quotes
lambda
5
1
13-liner: step by step
Reveal the Number
isdecimal
float
None
not
inline-if
6
1
5-liner: monkey business
Monkey Typing
IGNORECASE
re.IGNORECASE
findall
re.findall
re
8
2
5-liner: oil
Oil Pie
abs
inline-if
sum
list-comp
comprehension
8
5-liner: stringify
How to Find Friends
any
replace
join
in
and
9
1
6-liner: 3... 2... 1...
Counting Tiles
abs
sum
if-comprehension
and
list-comp
13
2
5-liner: groupby
Count And Say
groupby
itertools.groupby
itertools
join
list
15
6-liner
Largest Rectangle in a Histogram
min
max
range
len
for
16
1
32-liner: smooth
Count Chains
math.hypot
hypot
frozenset
combinations
itertools.combinations
17
1
First
Roman Numerals
reversed
enumerate
join
list-comp
split
20
3-liner: no import
Find Quotes
zip
enumerate
if-comprehension
list-comp
comprehension
1
2-liner: groupby
Long Repeat
max
list-comp
list
comprehension
len
3
1-liner: and data
Morse Encoder
lower
lambda
join
comprehension
1
4-liner: rather boring
Clock Angle
round
min
abs
split
comprehension
1
6-liner: Wanna make friends? Turn it off!
How to Find Friends
dict-comp
set
or
join
in
3
1-liner
The Most Numbers
min
max
lambda
inline-if
First
Feed Pigeons
math.exp
exp
math.log
log
math
Alice In Wonderland
5-liner: easy
Multiplication Table
bin
map
int
for
1
1-liner: max 99 chars
Long Non Repeat
bool
set
max
lambda
list-comp
1
3
7-liner: guessing accumulate idea
Flood Area
enumerate
pop
lambda
inline-if
and
1
2
3-liner: don't import and hold on your horses
The Fastest Horse
index
min
max
count
list-comp
2
20-liner: what else? for-else!
Flood Area
enumerate
pop
break
sorted
and
2
11-liner: simple
15-puzzle Solvability
combinations
itertools.combinations
itertools
remove
index
2
6
2-liner: find 'em all
Tree Walker
f-string
str
len
2
22-liner: count
Count Domino Tilings
complex
numpy.linalg
linalg
numpy.zeros
zeros
2
1-liner: triple len
Middle Characters
lambda
len
3
1-liner: +precomputed
The Shortest Knight's Path
lambda
3
1
6-liner: spaghetti
The Shortest Knight's Path
iter
chr
ord
pop
index
4
Digits Doublets
Digits Doublets
zip
continue
pop
min
None
5
2
1-liner: reverse 91
Zigzag Array
lambda
list-comp
range
comprehension
7
1-liner: zip it
Swap Nodes
zip
lambda
sum
list
len
8
4-liner: strptime
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
11
4-liner: range it
Zigzag Array
list-comp
range
comprehension
12
8-liner: clean
Long Non Repeat
set
max
range
len
for
20
Transposed Matrix
Transposed Matrix
zip
lambda
list-comp
list
comprehension
4-liner: clean recursive
Tree Walker
isinstance
values
dict
inline-if
sum
1
Multiplication Table
Multiplication Table
itertools.product
product
bin
itertools
sum
First
IP Network: Route Summarization
bin
lambda
join
list-comp
split
10-liner: zgub4's simplified
Multiplication Table
bin
or
and
int
for
The shortest Knight's path
The Shortest Knight's Path
heapify
heapq.heapify
heappush
heapq.heappush
heappop
GitHub
11-liner: needle in a hay-stack
The Cheapest Flight
continue
pop
min
while
False
1
5
3-liner: yawning
The Highest Building
zip
map
index
max
sum
1
4
7-liner: blackout
Power Supply
set-comp
items
inline-if
if-comprehension
in
1
2
2-liner: other
Create Intervals
zip
lambda
sum
sorted
list-comp
1
2-liner: max 50 chars
Long Repeat Inside
bool
max
lambda
count
list-comp
1
36-liner: precomputed range with priority queue
Power Plants
heappush
heapq.heappush
heappop
heapq.heappop
heapq
1
1
6-liner: based on StefanPochmann's solution
Simplify Unix Path
startswith
or
inline-if
join
and
1
3
5-liner: bit by bit
Exploring Calkin-Wilf Tree
f-string
tuple
int
for
1
1
6-liner: mumbo jumbo
Paper Dice
eval
set-comp
dict-comp
abs
bool
1
Open Labyrinth
Open Labyrinth
continue
not
or
inline-if
False
2
6-liner: my own compressed
Painting Wall
set-comp
all
zip
or
sum
2
1-liner: cookie monster
Cookies
f-string
lambda
2
29-liner: no import clean
Paper Dice
dict-comp
keys
all
items
zip
2
1
6-liner: yin & yang
The Cheapest Flight
min
lambda
if-comprehension
and
list-comp
2
6-liner: champion
Xs and Os Champion
next
if-comprehension
and
list-comp
split
2
1
1-liner: fusc
Exploring Calkin-Wilf Tree
lambda
inline-if
and
2
8-liner: easy
Long Repeat Inside
itertools.product
product
itertools
max
count
3
4
10-liner: nice and clean
Painting Wall
all
zip
set
or
sum
3
9-liner: o'clock
Broken Clock
datetime.strptime
strptime
rstrip
datetime.datetime
datetime
3
1
44-liner: step by step
Barcode Reader
get
zip
enumerate
None
or
3
11-liner: simple
Searchlights
math.cos
cos
math.hypot
hypot
math.sin
4
23-liner: simple with lru_cache
Power Plants
functools.lru_cache
lru_cache
itertools.permutations
permutations
union
4
1
5-liner: flat
Evenly Spaced Trees
math.gcd
gcd
functools.reduce
reduce
functools
5
3
4-liner: no title
Merge Intervals
zip
set
sum
sorted
if-comprehension
6
5
5-liner: dab
Open Labyrinth
not
while
and
if
6
Shooting range
Shooting Range
math.hypot
hypot
round
math
inline-if
7
Area of a convex polygon
Area of a Convex Polygon
abs
range
len
for
11
22-liner: picasso
Painting Wall
combinations
itertools.combinations
itertools
break
not
16
1-liner: sum up
Expand Intervals
lambda
sum
list-comp
range
list
20
1
Solution for anything
Solution for Anything
setattr
classmethod
class
pass
lambda
3-liner
The Most Frequent Weekdays
calendar.isleap
isleap
calendar.day_name
day_name
calendar.weekday
8-liner: simple
Create Intervals
next
sorted
while
if-comprehension
range
11
5-liner: no import
Evenly Spaced Trees
set
range
len
for
if
1
1-liner
The End of Other
r-string
any
lambda
join
list-comp
10-liner
Open Labyrinth
pop
not
while
if-comprehension
and
Dropbox
3-liner: dis(ord)er
Worth of Words
ord
max
lambda
sum
comprehension
1
1
7-liner: flat
Nonogram Row
all
zip
map
enumerate
None
1
1
1-liner: ord
Atbash Cipher
chr
ord
lambda
join
comprehension
1
3-liner: bonsai tree
Place Queens
next
set-comp
all
ord
zip
1
1
4-liner: complex enough
Three Points Circle
eval
round
abs
list-comp
comprehension
2
26-liner: clean
Huffman Encode
heapify
heapq.heapify
heappush
heapq.heappush
heappop
2
5-liner: blob
Huffman Encode
dict-comp
items
set
lambda
count
2
1
4-liner
Hubspot Amulet
next
lambda
if-comprehension
and
range
2
1
3-liner: shortest non-recursive
The Longest Palindromic
divmod
max
if-comprehension
list-comp
range
3
1
11-liner: simple
Sort Sorted Groups
sum
sorted
in
append
list
3
7-liner: easiest
Atbash Cipher
ascii_uppercase
string.ascii_uppercase
ascii_lowercase
string.ascii_lowercase
as
5
1
43-liner: the other name for googol (10**100) is ten duotrigintillion
Speech Module
divmod
next
sorted
join
if-comprehension
7
2
13-liner: stack only
Sum of Distinct Cubes
cbrt
math.cbrt
dict-comp
math
pop
7
12-liner: regular
Revorse the vewels
re.sub
sub
findall
re.findall
upper
7
13-liner: justify yourself
Text Formatting
textwrap.wrap
wrap
textwrap
rstrip
divmod
8
2
4-liner: calc
The Brick Factory Problem
is
None
int
if
8
2
17-liner: magic
Count Squares
complex
itertools.starmap
starmap
combinations
itertools.combinations
8
9-liner: no if statement
On the same path
any
pop
bool
set
while
11
1
Humpty Dumpty Form
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
13
11-liner: wrap it up
Scytale Encryption
textwrap.wrap
wrap
textwrap
itertools.zip_longest
zip_longest
1
6-liner
Friendly Number
next
enumerate
abs
inline-if
if-comprehension
5-liner: stripper
Numbers Factory
tuple
inline-if
join
while
range
1
1-liner
Simple Hashlib
lambda
1
Answer to the Ultimate Question of Life, the Universe, and Everything
The Best Number Ever
PyCon TW
5-liner: easiest
Ryerson Letter Grade
min
lambda
1
8
25-liner: piece of cake
Fused Cubes
ndarray
numpy.ndarray
scipy.ndimage.label
label
scipy
1
1
26-liner: almost easy
Unfair Districts
set-comp
continue
enumerate
pop
set
1
1
1-liner: no import, max len 99
Double Substring
max
lambda
count
if-comprehension
list-comp
1
9-liner: quasi heapq
Express Delivery
iter
divmod
find
continue
pop
1
2
25-liner: PhD
Ryerson Letter Grade
findall
re.findall
r-string
re
min
1
7-liner: recursive
Network Attack
get
dict
min
set
max
2
1
14-liner: simple complex
Dark Labyrinth
dir
get
dict
items
min
2
1
12-liner: view
Building Visibility
zip
set
lambda
sorted
and
3
1
7-liner: simple
Double Substring
max
count
range
len
for
4
6-liner: easy
Network Attack
min
max
if-comprehension
list-comp
range
4
1
5-liner: 3 lambdas
Digit Stack
pop
lambda
inline-if
sum
append
4
2
3-liner: terror zone
Simple Areas
eval
dict-comp
zip
split
comprehension
4
4-liner: no floodfill
Calculate Islands
complex
frozenset
set-comp
values
dict-comp
4
1
5-liner: short and clean
Robot Sort
index
min
lambda
inline-if
join
4
1-liner: Au
Golden Pyramid
max
lambda
inline-if
5
1
15-liner: clean classic
Network Attack
heapify
heapq.heapify
heappush
heapq.heappush
heappop
6
1
Calculate Islands
Calculate Islands
itertools.product
product
itertools
continue
pop
7
3-liner: no import
Sum Consecutives
zip
inline-if
sum
if-comprehension
list-comp
7
1-liner: 62 chars? that's it!
House Password
ord
set
lambda
list-comp
comprehension
8
3
1-liner
How Much Gold
lambda
inline-if
sum
in
list-comp
9
1
4-liner: index them
Ryerson Letter Grade
index
sorted
split
1
13-liner: simple
Calculate Islands
continue
pop
not
or
sorted
1
6-liner: cleanest for full character range
House Password
islower
any
isupper
isdigit
lambda
Robot Sort
Robot Sort
itertools.product
product
itertools
inline-if
range
Storage
46-liner: using integer factorization
Saw the Stick
divisors
sympy.divisors
sympy
continue
None
1
4
9-liner
English to Braille Translator
re.sub
sub
strip
r-string
format
2
1
14-liner: simple
Forgetful Prisoner
reversed
get
format
dict
items
2
1
1-liner: index
Weak Point
zip
index
min
lambda
sum
3
1
6-liner: use sum of triangular numbers series
Saw the Stick
list-comp
range
comprehension
int
for
3
35-liner: clean
Battle Dice
functools.lru_cache
lru_cache
itertools.product
product
decorator
3
3-liner: quine-eniuq
Exec Quine
4
12-liner: simplest
Moria Doors
findall
re.findall
r-string
index
re
7
1
3-liner: easiest
Group Equal consecutive
groupby
itertools.groupby
itertools
list-comp
list
9
3
25-liner: spiral hex
Hexagon Spiral
operator.sub
operator.add
operator
sub
add
10
1
25-liner: almost easy
Playfair Cipher
isalnum
divmod
find
index
set
12
clear
Earth Distances
math.atan2
atan2
math.radians
radians
math.cos
13
1
12-liner: PEP8 compliant
Mind Switcher
keys
get
inline-if
and
comprehension
17
1
1-liner: Wilson
Restricted Prime
exec
replace
19
1
14-liner: cleanest with heapq checking against not visited
Digging a Canal
heappush
heapq.heappush
heappop
heapq.heappop
heapq
6-liner
The Rows of Cakes
keys
get
dict
None
set
Square spiral
Square Spiral
min
abs
max
or
and
7-liner: iterated with no import
Group Equal consecutive
None
not
or
in
for
1
Word Pattern
Word Pattern
zfill
match
re.match
bin
re
Skew-symmetric matrix
Skew-symmetric Matrix
itertools.product
product
all
itertools
list-comp
Maya
91-liner: 2 rules only
Find Rectangles
Dict
typing.Dict
typing.Set
Set
union
1
79-liner: indestructible jungle
Net Game
copy.deepcopy
deepcopy
itertools.product
product
set-comp
1
1
43-liner: base x4
Inertia
heappush
heapq.heappush
heappop
heapq.heappop
heapq
1
63-liner: cells not separated
Visibilities
copy.deepcopy
deepcopy
union
iter
itertools.product
2
27-liner: simple
Unruly
itertools.product
product
any
itertools
zip
5
1
30-liner: heap-heap-ify
Inertia
heappush
heapq.heappush
heappop
heapq.heappop
heapq
5
HubSpot
1-liner: based on AlbaPol's
New Cities
set-comp
set
lambda
sum
list-comp
1
1
7-liner: simple
New Cities
frozenset
set-comp
values
dict-comp
continue
1
2
16-liner: almost easy
City's Happiness
frozenset
set-comp
values
dict-comp
keys
1
1
4-liner: based on gregz's
Node Disconnected Users
not
lambda
sum
if-comprehension
list-comp
1
2
67-liner: projection in 3d grid
Triangular Islands
isqrt
math.isqrt
scipy.ndimage.label
label
scipy
1
1
16-liner: rapid fire
Workout
heapify
heapq.heapify
heappush
heapq.heappush
heappop
1
1
7-liner
Repeating Decimals
find
replace
if-comprehension
list-comp
range
1
1
6-liner: stepping lambda
Univocalic davasaan
lambda
2
5
7-liner: Number Base
Number Base
set
lower
int
if
2
1
15-liner: xmas tree
Univocalic davasaan
lambda
str
2
1
14-liner: easy complex
Inscribe a Contour
cmath.inf
cmath.exp
cmath.phase
phase
cmath
2
11-liner: just another easy solution
Node Disconnected Users
values
dict-comp
get
continue
set
3
3-liner: zeeeeeeeeep
Team Play
zip
enumerate
lambda
sum
sorted
3
1
10-liner: ddd
Expected Dice
randint
random.randint
random
sum
list-comp
3
1
21-liner: piece of cake
Supply Line
heapify
heapq.heapify
heappush
heapq.heappush
heappop
5
1
5-liner: don't iterate, calculate only
Square Board
divmod
6
1
6-liner: always find longest
Workout
zip
index
max
lambda
list-comp
6
28-liner: straightforward
Next Birthday
Dict
typing.Dict
collections.defaultdict
defaultdict
Tuple
8
1
4-liner
Auto Painting
min
sorted
join
list-comp
range
13
Supply Stations
Supply Stations
heapify
heapq.heapify
heappush
heapq.heappush
heappop
13
1-liner: 79 chars
Univocalic davasaan
lambda
14
1
36-liner: manual
Triangular Islands
typing.Generator
Generator
isqrt
math.isqrt
typing.Set
19
2
1-liner: len(puzzle)
Restricted Sum
map
min
lambda
join
len
2
1-liner: The Hamming Distance
The Hamming Distance
bin
lambda
count
1-liner: recursive
Restricted Sum
lambda
inline-if
Blizzard
7-liner: what's your magic number?
Useless Flights
update
get
dict
continue
enumerate
1
4
4-liner: recursive
Permutation Index
math.factorial
factorial
math
index
inline-if
2
1
2-liner: h#e#l#p
Stressful Subject
upper
replace
bool
lower
or
2
4
1-liner: len, set, go!
Rectangles Union
set-comp
lambda
range
comprehension
len
2
1
6-liner: no import
Stressful Subject
endswith
upper
replace
lower
count
3
8
14-liner: general purpose (float numbers and large integers)
Rectangles Union
abs
break
sum
sorted
list-comp
3
4
2-liner
The Angles of a Triangle
round
max
lambda
inline-if
sum
3
3
2-liner: compressed
Weekend Counter
lambda
count
int
str
3
1
10-liner
Radiation Search
max
if-comprehension
and
list-comp
range
3
2-liner: no import, based on gyahun_dash's solution
Unlucky Days
map
lambda
sum
range
5
3
7-liner
Sudoku Solver
next
any
find
zip
not
5
14-liner: someone told this is Levenshtein's idea not mine
String Conversion
functools.lru_cache
lru_cache
decorator
functools
min
6
1
12-liner: aye aye sir
Safe Coasts
replace
not
lambda
join
while
8
1
3-liner: shortest the re(al) one
Spaceship Landing Strip
max
count
join
if-comprehension
range
9
Min and Max
Min and Max
iter
next
lambda
inline-if
int
15
1
47-liner: recursive for big integers and float numbers
Mountain Scape
FrozenSet
typing.FrozenSet
floordiv
operator.floordiv
operator.truediv
15
13-liner: polished
Useless Flights
get
continue
enumerate
pop
set
16
17-liner: cleanest & recursive
Sudoku Solver
set-comp
pop
set
not
if-comprehension
18
2
15-liner: chunked
Mountain Scape
typing.Set
Set
union
Tuple
typing.Tuple
Stair steps
Stair Steps
max
inline-if
len
6-liner: sunk by odobenus rosmarus
Reversed Permutation Index
math.factorial
factorial
divmod
yield
math
6-liner: count unique 1x1
Rectangles Union
set-comp
set
range
comprehension
len
5
5-liner: timedelta
The First Working Day
datetime.strptime
strptime
datetime.timedelta
timedelta
datetime.datetime
3
1-liner
Palindromic Palindrome
lambda
1-liner: __import__
Unlucky Days
lambda
sum
list-comp
range
comprehension
1
Spaceship landing strip
Spaceship Landing Strip
itertools.product
product
rstrip
reversed
re.search
Rock
34-liner: Familiy gifts
Family Gifts
all
continue
pop
set
not
1
11-liner: recursive and fast when elements repeated
Most Efficient Cutting
continue
min
set
not
in
1
1
2-liner: regex me
Greedy Number
re.search
search
re
lambda
inline-if
1
8-liner: simple
Count Comprehensions
ast.dump
dump
ast.parse
parse
ast
1
5-liner: based on Oleg_Domokeev's
River Crossing
min
None
max
or
inline-if
1
14-liner: 2 loops
Web Log Sessions
r-string
dict
zip
lower
inline-if
2
3
11-liner: O(n)
Sort by Removing
max
not
for
if
2
36-liner: predict chicken move
Chicken Hunt
heapify
heapq.heapify
random.choice
choice
heappush
2
6-liner: elegant partition
Greedy Number
partition
None
max
not
or
3
2
28-liner: recursive cached
Park Benches
Tuple
typing.Tuple
get
tuple
List
3
1
28-liner: simulated
River Crossing
itertools.product
product
yield
dict
itertools
3
1
4-liner: sweep 'em all
Berserk Rook
set-comp
chr
ord
min
max
3
1
1-liner: pancake
Sort by Removing
enumerate
max
lambda
if-comprehension
list-comp
4
26-liner: AL19
Hexagonal Islands
set-comp
values
chr
any
tuple
4
1
16-liner: by stack
Water Jars
heapify
heapq.heapify
heappush
heapq.heappush
heappop
5
4
4-liner: calc
Super Root
abs
while
6
1
6-liner: recursive
Sort by Removing
filter
lambda
list
len
if
6
6-liner: conjugate
Fibonacci Spiral's End
float
range
list
int
for
6
3
9-liner: sometimes complex means simplest
Life Counter
set-comp
collections.Counter
Counter
collections
if-comprehension
6
1
2-liner: 2:-1
Parity Bit Generator
chr
bin
lambda
count
inline-if
6
31-liner: kriss kross
Crossword Solver
chain
itertools.chain
re.sub
sub
r-string
8
2-liner
Super Root
abs
lambda
inline-if
9
1
11-liner: classic and fast for repeated elements
Most Efficient Cutting
multiset_permutations
sympy.utilities.iterables.multiset_permu
sympy
min
len
9
54-liner: no import
Count Comprehensions
startswith
values
dict-comp
dict
find
10
45-liner: white rabbit
Black Holes
math.hypot
hypot
math.sin
sin
combinations
12
1
15-liner: lru_cache
Family Dinner
functools.lru_cache
lru_cache
decorator
functools
tuple
12
11-liner: just another
Most Efficient Cutting
itertools.permutations
permutations
itertools
min
len
13
12-liner: simple counter with combinations
Home Coming
combinations
itertools.combinations
filter
collections.Counter
Counter
16
5-liner: map point
CheckSum
reversed
ord
enumerate
isalpha
isdigit
3
Shelter
1-liner: round
The Nearest Square Number
round
lambda
1
2
2-liner: Iterable
Completely Empty
isinstance
all
map
inline-if
False
1
1
38-liner: clean
Climbing Route
heappush
heapq.heappush
heappop
heapq.heappop
heapq
1
2
26-liner: clean
Fortress Cannons
itertools.product
product
math.acos
acos
math.pi
2
4
13-liner: simple
Landing Site
next
set-comp
collections.Counter
Counter
values
3
2
4-liner: uCs
Halloween Monsters
as
collections.Counter
Counter
all
collections
3
1
4-liner: fast recursive no import
Delivery Drone
enumerate
min
abs
inline-if
if-comprehension
3
1
12-liner: clean by stack
One line Drawing
pop
set
not
count
sum
4
1-liner: +Casper ascii art
Ghosts Age
exec
join
if-comprehension
list-comp
range
5
3
AMSCO cipher
AMSCO Cipher
functools.reduce
reduce
functools
zip
enumerate
7
15-liner: by stack
Delivery Drone
continue
enumerate
pop
min
abs
7
13-liner: scare me
Halloween Monsters
collections.Counter
Counter
collections
pop
max
8
1
19-liner: heeeelp!
ADFGVX Cipher
isalnum
divmod
find
zip
enumerate
9
9-liner: moment of clarity
Seven Segment
upper
set
split
for
15
2
The Lantern Festival
The Lantern Festival
eval
pop
break
replace
count
Pattern Recognition
Pattern Recognition
copy.deepcopy
deepcopy
itertools.product
product
copy
Codeship
11-liner: unrolling
Rolling 🎲!
int
str
for
1
3
41-liner: no magic
Magic Domino
itertools.permutations
permutations
chain
itertools.chain
itertools.product
1
1
9-liner: no import squeezed
8 Puzzle
divmod
tuple
map
index
set
1
1
29-liner: lambda classmate
Magic with 5 cards
vars
class
update
insert
f-string
1
3
7-liner: blah blah
Minesweeper
eval
divmod
continue
not
lambda
1
2
8-liner: cleanest recursive
Probably Dice
functools.lru_cache
lru_cache
decorator
functools
None
2
5
6-liner: easy
Ugly Numbers
min
range
int
for
2
2
3-liner: math
Probably Dice
scipy.special.binom
binom
scipy
as
lambda
2
101-liner: 10**12 in 2min
Ugly Numbers
heappushpop
heapq.heappushpop
heapq.nlargest
nlargest
itertools.count
2
3
2-liner: squeeze it!
The Square Chest
chr
set
lambda
sum
list-comp
3
3
11-liner: by product
The 88th Puzzle
next
zip
join
if-comprehension
list-comp
3
24-liner: fastest up to at least 10**10
Champernowne Word
bisect.bisect_right
bisect_right
bisect
divmod
int
3
2
20-liner: by stack
The Territory of Go
divmod
continue
pop
not
while
4
1
2-liner: permutate
Rolling 🎲!
lambda
list-comp
list
comprehension
4
3
51-liner: classy
Reversi: Othello Moves
auto
enum.auto
Enum
enum.Enum
enum
4
2-liner: simple
Champernowne Word
map
join
range
int
str
5
4-liner: go go gadget
Unfair Dice
combinations_with_replacement
itertools.combinations_with_replacement
itertools.product
product
next
5
1
16-liner: heapq over and over again
8 Puzzle
heapify
heapq.heapify
heappush
heapq.heappush
heappop
6
1
18-liner: bunker
Bats Bunker
heappush
heapq.heappush
heappop
heapq.heappop
heapq
7
1
19-liner: she told me to Go Eaten Stones, just give me a kiss, like this
Eaten Go Stones
divmod
set-comp
continue
pop
not
8
3
29-liner
Texas Referee
combinations
itertools.combinations
itertools
enumerate
index
12
1
15-liner: cleanest
The 88th Puzzle
list-comp
list
comprehension
int
for
13
1
11-liner
Minesweeper
divmod
continue
lambda
count
or
16
7-liner: simple
Pearls in the Box
replace
count
len
if
Behind 2048
Behind 2048
find
zip
False
True
list-comp
Hermit
7-liner: right to the point
Colder-Warmer
inline-if
sum
list-comp
comprehension
int
1
3
13-liner: cyclotron
Network Loops
continue
pop
index
set
inline-if
1
7-liner: waa gwaan
Fractions Addition
Fraction
fractions.Fraction
fractions
divmod
map
1
1
9-liner: using integer factorization O(n^1/4)
Count Consecutive Summers
divisors
sympy.divisors
sympy
and
for
1
2
2-liner: re.split
Unique Email Addresses
set-comp
r-string
lower
join
split
1
2-liner: sorted
Shorter Set
set
sorted
int
len
2
1
22-liner: esreveR
Reverse Engineer
randint
random.randint
ZeroDivisionError
random
Fraction
3
28-liner: 3 easy examples
Backspace Apply
partition
re.sub
sub
r-string
re
5
1
20-liner: mono
Mono Captcha
itertools.product
product
itertools
count
join
6
9-liner: clean re.split
Unique Email Addresses
re.split
f-string
List
typing.List
map
6
4-liner: max four moves
Ore In The Desert
intersection
set-comp
round
enumerate
abs
6
17-liner: rescued by heapq
Anagrams By Stacks
heappush
heapq.heappush
heappop
heapq.heappop
heapq
12
2
21-liner: plain
Stacking Cubes
itertools.product
product
Tuple
typing.Tuple
collections.Counter
12
1
5-liner: O(n)
Stock Profit
zip
max
range
list
comprehension
13
1-liner: product
Break Rings
map
min
set
lambda
len
2-liner: easy
Count Consecutive Summers
lambda
sum
range
comprehension
3
First
Simplification
class
eval
type
zip
enumerate
Keywords Finder
Keywords Finder
IGNORECASE
re.IGNORECASE
reversed
re.sub
sub
The Good Radix
The Good Radix
index
max
inline-if
in
list-comp
Watchtower
22-liner: fast & clean
Broken Window
set-comp
zip
continue
enumerate
pop
1
2
6-liner: compact
DNA Common Sequence
functools.lru_cache
lru_cache
union
intersection
set-comp
1
1
9-liner: short
Magic Square
divmod
any
zip
continue
index
1
1
20-liner: messed up
Bacteria Colonies
itertools.product
product
all
itertools
or
1
4-liner: don't complicate
Boundary Blocks
set-comp
enumerate
lambda
or
if-comprehension
1
2
1-liner: +marriage
Funny Addition
exec
isupper
replace
lower
join
2
7
17-liner: clean
Magic Square
itertools.product
product
next
set-comp
any
2
1
3-liner: Harder, Better, Faster, Stronger
Numbered Triangles
itertools.permutations
permutations
itertools.product
product
as
2
1
5-liner
Number Guess
index
sum
list-comp
range
comprehension
2
15-liner: break sum inline-if in list
Wall Keeper
break
inline-if
sum
in
and
3
9-liner: suppress exception
Compare Functions
exec
with
Exception
None
inline-if
3
DNA Common Sequence
DNA Common Sequence
itertools.product
product
update
itertools
set
3
16-liner: no import
Stepping Stones Puzzle
set-comp
dict-comp
get
tuple
pop
4
Compare Functions
Compare Functions
None
except
try
False
4
17
1-liner: tick tick boom
Rotate Hole
all
lambda
if-comprehension
list-comp
range
5
1
23-liner: c-hull
Convex Hull
fmod
math.fmod
math.hypot
hypot
math.degrees
6
25-liner: count areas manually - no scipy
Boundary Blocks
typing.Set
Set
Tuple
typing.Tuple
set-comp
6
1
7-liner: vinegar taste
Vigenere Cipher
chr
ord
zip
lambda
join
8
12-liner: fast and simple, max 8 steps for all 5040 cases
Bulls and Cows
set-comp
zip
pop
set
not
13
1
4-liner
Bag of Santa Claus
max
not
or
append
if
16
1
19-liner: cleanest
Ethernet Ring Dimensioning
values
get
dict
find
zip
Escher
9-liner: combine all pairs
Wild Dogs
combinations
itertools.combinations
itertools
round
abs
1
3
4-liner: short no import
Ground for the House
rfind
find
zip
enumerate
min
1
2
10-liner: simple
Card Game
remove
zip
sorted
in
elif
2
4-liner: easy and straightforward
The Ship Teams
set-comp
set
sorted
if-comprehension
comprehension
3
5
12-liner: stack it up
Hypercube
set-comp
pop
lower
while
if-comprehension
3
12-liner: recursive
The Buttons
set-comp
add
set
or
sum
3
6
5-liner: short
The Secret Room
index
lambda
sorted
range
3
2
14-liner: recursive revisited (this is only correction of my previous solution)
The Buttons
set-comp
remove
or
sum
sorted
4
19-liner: correct
Graphical Key
combinations
itertools.combinations
set-comp
as
itertools
4
11-liner: get rich
Treasures
reversed
f-string
min
lambda
sorted
5
1
19-liner: simple with excluded corner case
Graphical Key
set-comp
continue
pop
set
max
5
1
4-liner: just pick up all *items
Compass, Map and Spyglass
divmod
index
abs
max
sum
6
2
14-liner: cobinations over and over again
The Buttons
complex
frozenset
divmod
combinations
itertools.combinations
9
6-liner: clean
The Stones
set
in
list-comp
range
comprehension
11
2
11-liner: suppress SyntaxError for eval
Safe Code
contextlib.suppress
suppress
contextlib
with
eval
13
1
5-liner: easy-peasy
Ground for the House
divmod
enumerate
min
max
or
16
4
4-liner: flip a coin or maybe wall
The Stone Wall
zip
index
max
count
if-comprehension
19
9-liner: finally clean (Phil15 thanks for pointing the mess)
The Tower
combinations
itertools.combinations
intersection
itertools
map
5
20-liner: self commenting
Keys and Locks
splitlines
zip
enumerate
min
max
3
23-liner: up to billions
The Secret Room
divmod
next
index
sorted
join
1
Not On Map
12-liner: fast & clean - up to base 36
Base change - Position System
digits
string.digits
collections.deque
deque
ascii_uppercase
14
18-liner: 3 easy solutions
Aggregate and Count
collections.Counter
Counter
dict-comp
get
dict
18
4