15
M157q
2 11 31
1107/ 1195
Last seen 6 years ago
Member for 9 years, 6 months, 14 days
Difficulty Normal
Missions (74) / Solutions (79)
Best solutions / Newest solutions
Home
one line: use datetime.date()
Days Between
date
datetime.date
datetime
abs
Description so loooong
Pawn Brotherhood
ord
or
in
list-comp
comprehension
simple one line
Even the Last
inline-if
sum
1
one line: bool(), re.search()
Three Words
r-string
bool
one line: re.sub()
Right to Left
join
1
list comprehension
Non-unique Elements
count
if-comprehension
list-comp
comprehension
Electronic Station
dict with lambda
Boolean Algebra
not
lambda
or
and
1
Newbie
Find Sequence
match
re.match
r-string
any
format
for else
Verify Anagrams
break
replace
set
lower
count
First
Brackets
replace
join
while
if-comprehension
in
functools.reduce, operator.mul, map, str.replace
Digits Multiplication
mul
operator.mul
operator
functools.reduce
reduce
Scientific Expedition
One line
Remove Accents
lambda
join
if-comprehension
in
comprehension
filter and max
The Most Wanted Letter
filter
ord
isalpha
max
lower
1
Newbie
Call to Home
math.ceil
ceil
collections.Counter
Counter
values
list and map
Bird Language
map
pop
join
while
in
str.join, sorted, set intersection, str.split
Common Words
set
sorted
join
split
Use the power of zip, ''.join and map
Cipher Map
tuple
zip
map
inline-if
join
set comprehension, set.__eq__
Pangram
set-comp
ascii_lowercase
string.ascii_lowercase
string
islower
not all and all and not all and all sum
Striped Words
punctuation
string.punctuation
translate
string
all
First
Letter Queue
pop
join
in
elif
and
one line: join(), generator expression
Secret Message
isupper
join
if-comprehension
comprehension
sort with key!
Absolute Sorting
abs
sorted
O'Reilly
Recursion
Flatten a List
type
inline-if
list
for
simple one line
Index Power
inline-if
len
use nested for loop in generator expression lol
Count Inversions
sum
range
comprehension
len
Just check
Xs and Os Referee
zip
None
or
inline-if
and
sorted
Median
inline-if
sorted
int
len
Incinerator
one line __init__
Building Base
vars
locals
class
update
dict-comp
8
set.union is powerful!
Friends
class
union
update
remove
set
Mine
use dict and ' '.join()
Fizz Buzz
strip
or
inline-if
join
comprehension
Power of re.sub and str.translate
Currency Style
X
re.X
translate
re.compile
compile
Simple math
Achilles and the Tortoise
bin() then count(), simple and clear, Python!
Binary Count
bin
count
So many continue
Moore Neighbourhood
continue
or
elif
and
range
Ice Base
one line: sum(), map(), lambda
Monkey Typing
map
lower
lambda
sum
in
one line: len(), list(), filter(), lambda
Monkey Typing
filter
lower
lambda
in
list
one line: sum(), boolean, generator expression
Monkey Typing
lower
sum
in
comprehension
The power of stack
Largest Rectangle in a Histogram
pop
max
or
inline-if
while
Based on hint
How to Find Friends
pop
index
not
while
in
I hate graph
How to Find Friends
union
add
remove
set
not
one line: len(), list comprehension
Monkey Typing
lower
if-comprehension
in
list-comp
comprehension
one line: max(), min()
The Most Numbers
min
max
inline-if
1
Newbie
Feed Pigeons
extend
break
count
while
range
Build a table
Roman Numerals
while
for
Alice In Wonderland
Just zip
Transposed Matrix
zip
lambda
list
GitHub
One Liner by lambda
The Most Frequent Weekdays
tuple
map
enumerate
bool
max
9
any any map
The End of Other
endswith
any
map
comprehension
20
Replacing rich comparison methods of object
Solution for Anything
class
pass
True
9
BFS
Open Labyrinth
add
continue
pop
set
while
Dropbox
One line: hashlib.new(algorithm, string.encode()).hexdigest()
Simple Hashlib
while for break else break
Numbers Factory
map
break
sorted
join
while
2
Formula
Three Points Circle
math.sqrt
sqrt
filter
format
round
2
42
The Best Number Ever
1
Double for loop but early return
The Longest Palindromic
range
len
for
if
Check check check
Speech Module
reverse
reversed
filter
pop
None
PyCon TW
Recursion
Golden Pyramid
tuple
max
range
comprehension
len
I love re
House Password
re.search
search
r-string
re
inline-if
Newbie
Digit Stack
format
pop
print
in
elif
Storage
int(), join(), map() in one line
Word Pattern
map
isalpha
lambda
inline-if
join
if -M == Mt
Skew-symmetric Matrix
tuple
zip
list-comp
list
comprehension
Newbie
Moria Doors
punctuation
string.punctuation
translate
string
round
First
Weak Point
zip
index
min
sum
list-comp
HubSpot
oneliner
Number Base
index
max
lower
lambda
inline-if
Totally Newbie
The Hamming Distance
zfill
bin
map
max
lambda
eval
Restricted Sum
eval
map
join
str
int(), try-except
Number Base
ValueError
except
try
int
Blizzard
while else and timedelta
Weekend Counter
datetime.timedelta
timedelta
datetime
while
in
Newbie
Min and Max
get
None
inline-if
elif
else
Ugly one line solution
Weekend Counter
datetime.timedelta
timedelta
filter
datetime
lambda
Shelter
Just a stupid method.
AMSCO Cipher
find
break
except
try
print
Newbie
Ghosts Age
while
in
else
if
Codeship
rotate, merge row, rotate back, add new tile
Behind 2048
iter
all
zip
map
pop
Power of recursion
Pearls in the Box
round
replace
count
else
len
Hermit
Brute force with itertools.combinations()
Break Rings
union
combinations
itertools.combinations
all
itertools
Newbie
The Good Radix
digits
string.digits
ascii_uppercase
string.ascii_uppercase
dict-comp
Watchtower
Newbie solution.
Compare Functions
is
None
except
try
or
Get key and decrypt
Vigenere Cipher
chr
tuple
ord
break
join
list comprehension, all(), slicing
Rotate Hole
all
if-comprehension
list-comp
range
comprehension