16
drednout
5 10 34
1273/ 1445
Alex Ramanau
Last seen 9 months ago
Member for 12 years, 1 month, 9 days
Difficulty Normal
Missions (114) / Solutions (78)
Best solutions / Newest solutions
Initiation
Nearest value - O(n) solution
Nearest Value
is
items
min
None
abs
Use itertools zip_longest
Split Pairs
itertools.zip_longest
zip_longest
iter
itertools
None
Simple iterative solution using for cycle and status variable
Between Markers (simplified)
continue
break
join
False
append
Simple dict-based solution
The Most Frequent
setdefault
is
items
continue
None
Classical slice solution
Backward String
str
1
Stupid solution
All the Same
Any
typing.Any
List
typing.List
None
Simple and clear
Sum Numbers
ValueError
pass
except
try
split
Home
Just a solution
Duplicate Zeros
typing.Iterable
Iterable
typing
print
append
Just use slices
Split List
divmod
list
len
Simple one-liner
Right to Left
replace
join
Pure function with sorted, lambda and slice
Bigger Price
lambda
sorted
True
list
int
O(n) using dict
Non-unique Elements
setdefault
append
for
if
Simple
Sun Angle
round
or
list-comp
split
comprehension
Straightforward and clear
Popular Words
dict-comp
dict
lower
in
split
Simple iterative solution
First Word
continue
break
join
in
elif
Simple
Days Between
date
datetime.date
datetime
abs
Simple
Three Words
isalpha
break
False
True
split
Simple
Even the Last
enumerate
not
sum
if-comprehension
list-comp
Electronic Station
Fast&simple O(1) solution using dict
Boolean Algebra
1
Simple re-based solution
Unix Match. Part 2
match
re.match
format
re
None
Straight-forward solution based on ChatGPT clues
Similar Triangles
Tuple
typing.Tuple
List
typing.List
sort
Simple re-based solution
Unix Match. Part 1
match
re.match
re
None
replace
Simple solution using set
Acceptable Password III
digits
string.digits
intersection
string
bool
Set based
Words Order
add
bool
set
print
in
Simple
All Upper II
isupper
bool
print
False
True
Simple dict-based
Verify Anagrams
setdefault
enumerate
replace
lower
for
Stack + sets
Brackets
pass
IndexError
pop
except
try
Simple
Digits Multiplication
continue
int
str
for
if
Scientific Expedition
Simple list solution
Absolute Sorting
sort
abs
list
Simple set usage
Pangram
set-comp
ascii_lowercase
string.ascii_lowercase
string
isalpha
Simple set-based solution
Common Words
intersection
set
sorted
join
split
First
The Most Wanted Letter
setdefault
ascii_lowercase
string.ascii_lowercase
string
items
Simple cycle
Bird Language
continue
join
in
elif
append
That's it
I Love Python!
Use list for queue emulation
Letter Queue
pop
join
in
elif
False
Using maketrans for preparing data and sets for quick lookup
Striped Words
translate
is
upper
continue
None
One-liner using list comprehension
Secret Message
isupper
join
if-comprehension
list-comp
comprehension
O'Reilly
Easy-peasy
Index Power
len
if
1
Simple brute-force O(N**2) solution
Count Inversions
enumerate
for
if
Simple recursive solution with proper indentation
Flatten a List
type
extend
int
for
if
First
Median
float
sort
else
len
if
X&0 :)
Xs and Os Referee
popitem
setdefault
zip
None
False
Incinerator
Simple and clear
The Warriors
class
property
decorator
format
break
Just friends as a dict of sets
Friends
copy.copy
class
discard
setdefault
copy
Simple head-on solution
Building Base
class
format
Mine
First
Long Pressed
bool
or
print
while
elif
Brute-force solution with recursion and lru_cache
Domino Chain
functools.lru_cache
lru_cache
reversed
decorator
functools
Simple stack-based solution
Adjacent Letters
pop
print
join
and
append
Beautiful, clean, tidy
Switch Keys to Values
setdefault
add
dict
items
set
Simple one-liner
Binary Count
bin
count
Simple
Fizz Buzz
join
append
else
str
if
Ice Base
Simple straitforward solution based on if/else
Write Quadratic Equation
f-string
None
abs
print
elif
2
Simplified clean solution
Write Quadratic Equation
f-string
List
typing.List
abs
typing
Straitforward solution with allocating an extra list
Move Zeros
extend
typing.Iterable
Iterable
typing
print
Simple
The Most Numbers
min
max
not
if
FIFO queue of friends
How to Find Friends
setdefault
add
continue
pop
break
Simple scan char by char with counter
Long Repeat
max
not
print
range
else
Simple
Monkey Typing
lower
count
for
if
Alice In Wonderland
Stupid
When is Friday?
datetime.datetime
datetime
None
abs
elif
6
Using generator comprehension and %
Transposed Matrix
enumerate
append
range
comprehension
len
GitHub
First
Solution for Anything
class
True
Simple
The End of Other
endswith
continue
False
True
for
Dropbox
Simple head-on solution
Text Formatting
Exception
raise
rstrip
divmod
format
17
The simplest
Simple Hashlib
getattr
hashlib
update
Break to functions clear solution
The Longest Palindromic
yield
is
continue
None
not
PyCon TW
Just use list for emulating LIFO
Digit Stack
pop
in
elif
False
append
Storage
Scary but near to O(1) dict-based solution
Restricted Prime
chr
ord
set
join
in
10
Simple imperative dict-based solution
Moria Doors
OrderedDict
collections.OrderedDict
setdefault
translate
union
Yehoo, first usage of zip function
Weak Point
zip
sort
enumerate
append
list-comp
HubSpot
use XOR + bin()
The Hamming Distance
bin
count
First
Number Base
ValueError
pass
except
try
int
Map+zip+f(*args)
Restricted Sum
zip
map
list
len
Blizzard
First itertools.groupby usage
Stressful Subject
groupby
itertools.groupby
endswith
all
itertools
Avoid duplicate code using "operator"
Min and Max
gt
operator.gt
lt
operator.lt
operator
while+timedelta
Weekend Counter
datetime.weekday
weekday
datetime.timedelta
timedelta
date
Codeship
astar solution written using chatgpt assistance
8 Puzzle
add
sort
pop
abs
break
Hermit
Simple for + int constructor
The Good Radix
ValueError
continue
break
except
try
Watchtower
Prod-like
Funny Addition
sum
1