34
DiZ
14 34 43
7059/ 7195
Last seen 2 years ago
Member for 11 years, 6 months, 10 days
Difficulty Normal
Missions (188) / Solutions (195)
Best solutions / Newest solutions
Home
No datetime
Days Between
abs
if
12
4
62
Three Words
bytes
map
isalpha
lambda
split
oneliner
Days Between
abs
lambda
2
5
Could be shorter :p
Right to Left
replace
lambda
join
comprehension
2
Sum of chr
Pawn Brotherhood
chr
any
ord
lambda
sum
2
3
1 Counter
Non-unique Elements
if-comprehension
list-comp
comprehension
6
3
Shorter
Three Words
bytes
map
isalpha
lambda
split
Straightforward implementation
Three Words
isalpha
False
True
split
else
1
map
Three Words
map
isalpha
lambda
join
True
Short
Even the Last
lambda
sum
len
Counter
Non-unique Elements
collections.Counter
Counter
collections
if-comprehension
list-comp
Electronic Station
complex
Can You Pass?
complex
set-comp
enumerate
set
while
Ray casting
Inside Block
zip
min
max
and
True
6
1
GNU puns
Boolean Algebra
find
lambda
4
6
puncs
Boolean Algebra
find
lambda
1
Another lambda
Verify Anagrams
replace
lower
lambda
sorted
eval replace
Digits Multiplication
eval
replace
lambda
join
str
No list comprehension
Digits Multiplication
math.exp
exp
math.log
log
filter
Recursive generators
Mathematically Lucky Tickets
operator.truediv
truediv
operator.sub
operator.add
ZeroDivisionError
1 pass
Find Sequence
set-comp
all
inline-if
False
and
Straightforward solution (4 pass)
Find Sequence
all
zip
enumerate
lambda
False
O(n)
Brackets
ord
map
pop
not
in
Scientific Expedition
I don't love Python!
I Love Python!
lambda
join
split
int
1
65
Pangram
chr
upper
map
set
lambda
1
24
Straightforward
Cipher Map
reversed
zip
enumerate
join
append
52
Secret Message
filter
isupper
lambda
join
str
6
2
78
Letter Queue
lambda
and
9
First
Letter Queue
pop
join
append
split
else
replace
Bird Language
re.sub
sub
r-string
re
replace
10
Mn twisted
Remove Accents
lambda
join
if-comprehension
comprehension
158
Call to Home
values
sum
comprehension
int
for
3
4
Straightforward
Call to Home
math.ceil
ceil
collections.defaultdict
defaultdict
values
for zip_longest
The Hidden Word
itertools.zip_longest
zip_longest
splitlines
itertools
find
16
Straightforward
Absolute Sorting
abs
lambda
sorted
List comprehension
Common Words
intersection
set
lambda
sorted
join
Method caller
Common Words
methodcaller
operator.methodcaller
and_
operator.and_
operator
O(n) (1 regex)
Striped Words
re.I
I
findall
re.findall
r-string
13
3
Customizable lambdas
Morse Clock
translate
zfill
bin
map
lambda
O(n), only 1 recursion
The Most Wanted Letter
ascii_lowercase
string.ascii_lowercase
collections.Counter
Counter
string
One-liner (Counter & sort trick)
The Most Wanted Letter
filter
collections.Counter
Counter
items
collections
O'Reilly
50
Flatten a List
map
lambda
sum
list
52
Flatten a List
map
lambda
sum
fill dict
Cipher Crossword
itertools.permutations
permutations
chain
itertools.chain
itertools
recursive
Determine the Order
setdefault
union
add
zip
map
58
Median
sort
lambda
len
6
6
Binary Indexed Tree
Count Inversions
reversed
dict-comp
enumerate
sorted
while
14
2
45
Index Power
lambda
len
1
11
60
Flatten a List
type
map
lambda
inline-if
sum
2
18
65
Flatten a List
isinstance
map
lambda
inline-if
sum
Simple recursive
Parse Array
startswith
endswith
strip
ord
enumerate
1
First
Xs and Os Referee
all
zip
enumerate
elif
list
Following definition
Median
inline-if
sum
sorted
len
Generated
Loading Cargo
itertools.permutations
permutations
itertools
map
min
Incinerator
First
Building Base
class
format
frozenset
Friends
class
getattr
frozenset
set-comp
pass
Mine
BFS
What Is Wrong With This Family?
setdefault
union
copy
values
keys
Regex
Currency Style
translate
re.sub
sub
re
lambda
3
Borders
Color Map
setdefault
union
set-comp
add
items
1
7
Dispatch and merge
The Einstein Problem-Lite
discard
next
filter
any
zip
19
115
Moore Neighbourhood
lambda
sum
comprehension
len
5
DFS
Disposable Teleports
frozenset
map
pop
set
join
4
reduce
The Greatest Common Divisor
fractions.gcd
gcd
fractions
functools.reduce
reduce
11
3
Straightforward
Achilles and the Tortoise
lambda
11
Fraction-free GE
Determinant
continue
abs
max
not
lambda
3
4
Bit hack
Binary Count
while
4
1
Straightforward
Binary Count
bin
lambda
count
Simple dict
Fizz Buzz
lambda
join
if-comprehension
comprehension
str
4
Ice Base
O(n) search
Largest Rectangle in a Histogram
enumerate
pop
max
while
append
1
sentinel
Making Change
set-comp
min
in
range
comprehension
3
4 lines
How to Find Friends
intersection
update
filter
set
in
1
7
Straightforward
Clock Angle
map
min
abs
split
int
6
Straightforward
Monkey Typing
lower
lambda
sum
in
comprehension
14
2
First
Oil Pie
Fraction
fractions.Fraction
fractions
map
abs
Without math
Counting Tiles
range
int
for
4
Short
The Most Numbers
min
max
lambda
len
First
Feed Pigeons
max
int
6
1
Second
Roman Numerals
enumerate
lambda
join
list-comp
comprehension
Without dictionnary
Roman Numerals
divmod
insert
enumerate
abs
join
Alice In Wonderland
ipaddress
IP Network: Route Summarization
ip_network
ipaddress.ip_network
ip_address
ipaddress.ip_address
ipaddress
First
IP Network: Route Summarization
set-comp
format
map
max
lambda
Dijkstra again
The Shortest Knight's Path
heappush
heapq.heappush
heappop
heapq.heappop
heapq
18
3
Short sum
Multiplication Table
bin
lambda
sum
comprehension
int
14
zip one-liner
Transposed Matrix
zip
lambda
list
GitHub
set set set
Power Supply
setdefault
update
keys
get
add
O(1)
The Most Frequent Weekdays
lambda
7
1
Shortest?
Solution for Anything
id
class
str
6
1
str
Solution for Anything
class
str
1
4
Explanation
Shooting Range
complex
round
min
not
lambda
set
Painting Wall
add
tuple
enumerate
min
set
Brute formula
Area of a Convex Polygon
abs
lambda
sum
range
comprehension
12
Itertools
The End of Other
itertools.permutations
permutations
endswith
as
any
First
Open Labyrinth
items
pop
min
or
join
Dropbox
Manacher's algorithm
The Longest Palindromic
format
enumerate
min
max
join
2
3
11? :-P
The Best Number Ever
int
13
1
Gaussian elimination over Z/ 360Z ring
Hubspot Amulet
Fraction
fractions.Fraction
fractions
zip
map
Vector OA
Three Points Circle
eval
format
round
list-comp
comprehension
new
Simple Hashlib
lambda
First
Friendly Number
float
format
abs
break
list
Fixed memory
Numbers Factory
enumerate
not
inline-if
join
while
Stacked factors
Numbers Factory
not
inline-if
join
while
append
Concise join
Speech Module
zfill
filter
map
None
inline-if
PyCon TW
First
Ryerson Letter Grade
divmod
strip
or
int
str
13
reset globals
Dark Labyrinth
complex
clear
divmod
collections.Counter
Counter
11
branch if box
Express Delivery
heappush
heapq.heappush
heappop
heapq.heappop
heapq
1
5
Complex
Calculate Islands
complex
discard
set-comp
enumerate
pop
Network BFS
Network Attack
add
enumerate
pop
min
max
75
House Password
islower
isupper
isalpha
isdigit
lambda
7
119
Digit Stack
lambda
inline-if
int
len
1
7
Only 1 formula
Simple Areas
lambda
sum
comprehension
len
12
log(n) (space) and o(n) (time)
Golden Pyramid
reversed
enumerate
max
list-comp
comprehension
4
3
Shortest
How Much Gold
abs
lambda
sum
in
comprehension
2
First
House Password
functools.reduce
reduce
functools
islower
isupper
Storage
O(n**.5) in 9 lines
Saw the Stick
while
in
append
len
if
2
1
alpha bytes
Word Pattern
bytes
isalpha
lambda
comprehension
int
as hinted
Mind Switcher
popitem
get
continue
pop
not
Translation table (3 steps)
English to Braille Translator
chr
bin
ord
zip
map
2
re
Moria Doors
findall
re.findall
re
min
set
2
1
Cube coordinates
Hexagon Spiral
divmod
zip
map
abs
max
1
1
Binary & Complex
Forgetful Prisoner
random.choice
choice
random
values
dict-comp
1
2
Random
Forgetful Prisoner
random.choice
choice
random
inline-if
if-comprehension
6
partial
Playfair Cipher
functools.partial
partial
isalnum
digits
string.digits
1
2
short complex
Square Spiral
abs
int
2
No heap
Digging a Canal
bisect.insort
insort
bisect
add
continue
2
shortest
Exec Quine
lambda
5
4
Only one loop
Weak Point
range
len
for
if
70
Weak Point
zip
index
min
lambda
sum
12
1
Straightforward
Saw the Stick
sum
while
append
range
len
12
2
Short with enumerate
Restricted Prime
all
enumerate
lambda
if-comprehension
and
5
1
HubSpot
50
Number Base
max
lambda
int
10
1
generic
Auto Painting
map
min
lambda
join
range
First
The Hamming Distance
bin
lambda
count
Without try
Number Base
max
lambda
inline-if
comprehension
int
Short eval
Restricted Sum
eval
map
lambda
join
str
Blizzard
(d>''<b)
String Conversion
min
lambda
inline-if
len
1
1
timetuple
Unlucky Days
lambda
sum
range
comprehension
8
3 steps
Safe Coasts
add
remove
map
enumerate
pop
1
5
O(N*N)
Radiation Search
set-comp
add
remove
enumerate
pop
14
Variable move length
Stair Steps
max
for
Recursive
Stair Steps
max
not
len
if
Duck typing
Min and Max
TypeError
iter
next
except
try
1
Quote escaping
Palindromic Palindrome
lambda
16
Law of cosines
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
O(1) one-liner
Weekend Counter
lambda
sum
range
comprehension
ordinal one-liner
Weekend Counter
datetime.fromordinal
fromordinal
date
datetime.date
datetime
Rock
Good recursive
Berserk Rook
chr
add
ord
map
enumerate
cmath
Black Holes
cmath.acos
cmath.sqrt
cmath.pi
cmath
complex
1
I will stick to Py3! (66 chars)
Parity Bit Generator
chr
bin
lambda
count
join
3
2
regex grid
Crossword Solver
finditer
re.finditer
discard
fromkeys
setdefault
1
1
dead & born
Life Counter
set-comp
enumerate
not
lambda
if-comprehension
del
Web Log Sessions
setdefault
map
lower
sorted
join
1
2
Straightforward
CheckSum
ord
map
isupper
enumerate
isdigit
15
Recursive targeting
Berserk Rook
chr
add
ord
map
enumerate
3
8
Shelter
Graph expansion
The Lantern Festival
difference_update
union
collections.defaultdict
defaultdict
update
1
Eulerian path & DFS
One line Drawing
frozenset
collections.defaultdict
defaultdict
add
items
5
1
partial
AMSCO Cipher
functools.partial
partial
functools
dict
enumerate
9
Straightforward
Pattern Recognition
list-comp
range
comprehension
len
for
O(1) obfuscated
Ghosts Age
math.log
log
round
math
lambda
2
2
Codeship
3 shots
Texas Referee
find
map
set
max
lambda
1
3
Judge all of them
Texas Referee
combinations
itertools.combinations
itertools
index
set
3
3
Straightforward
Texas Referee
union
next
set-comp
reversed
collections.Counter
6
One dimension heap
8 Puzzle
heappush
heapq.heappush
heappop
heapq.heappop
heapq
2
Recursive golf
Pearls in the Box
lambda
count
inline-if
sum
comprehension
2
1
set
Minesweeper
itertools.product
product
add
itertools
continue
A*
The 88th Puzzle
dict-comp
get
add
tuple
zip
3
Counter
Probably Dice
dict-comp
sum
range
comprehension
for
12
Supercover line
Bats Bunker
math.hypot
hypot
combinations
itertools.combinations
dict-comp
2
1
Parallel segments
The Square Chest
set-comp
add
tuple
break
set
7
Simpler O(n^4)
The Square Chest
set-comp
all
tuple
sum
sorted
1
8
yield from
Unfair Dice
yield
sum
range
comprehension
else
4
2
combinations_with_replacement
Unfair Dice
combinations_with_replacement
itertools.combinations_with_replacement
itertools
continue
sum
1
4
Hermit
Divmod on Fraction
Fractions Addition
Fraction
fractions.Fraction
fractions
divmod
f-string
cmp
Colder-Warmer
set-comp
pop
or
if-comprehension
range
8
1
Base 3
Anagrams By Stacks
frozenset
divmod
add
format
items
2
2
memory space optimization
Anagrams By Stacks
tuple
map
continue
pop
not
Overlapping ranges
Keywords Finder
reversed
insert
find
min
break
verbose
Network Loops
difference_update
setdefault
keys
pop
set
9
magic Counter
Simplification
class
eval
isinstance
strip
get
6
Counter update
Simplification
class
eval
update
re.sub
sub
1
漢字
Mono Captcha
bytes
bin
ord
min
lambda
2
5
Base 33
Mono Captcha
bytes
bin
min
lambda
count
Cycle detection
Break Rings
min
set
lambda
comprehension
len
1
6
iterative
Ore In The Desert
complex
next
all
round
abs
Bypassing ValueError
The Good Radix
max
not
range
int
for
8
Evident solution
The Good Radix
pass
except
try
not
range
Watchtower
Straightforward
Ethernet Ring Dimensioning
fromkeys
values
dict
map
continue
2
any number of functions
Compare Functions
chr
ord
enumerate
None
except
1
2
von Neumann neighbourhood
Bacteria Colonies
union
update
set-comp
dict-comp
keys
simpledict
DNA Common Sequence
collections.defaultdict
defaultdict
set-comp
collections
map
4
2
BFS
Numbered Triangles
remove
zip
map
continue
enumerate
Happy Halloween! Merry Christmas!
Bag of Santa Claus
max
and
1
1
partial
Vigenere Cipher
itertools.accumulate
accumulate
functools.partial
partial
cycle
2
2
First
Rotate Hole
set-comp
enumerate
set
not
lambda
85
Number Guess
intersection
set
max
lambda
list-comp
4
1
First
Funny Addition