13
grutte_pier
11 24
743/ 845
Jakob van Bethlehem
Last seen 5 years ago
Member for 10 years, 3 months, 19 days
Difficulty Normal
Missions (47) / Solutions (47)
Best solutions / Newest solutions
Initiation
Why I love Python...
Easy Unpack
Home
Some blanks in the files and ranks to prevent index checks
Pawn Brotherhood
index
min
sum
in
comprehension
The solution everyone has I presume?
Days Between
date
datetime.date
datetime
abs
5
A splitted oneliner
Right to Left
map
replace
lambda
join
Somehow turned into something quite different than I though it would
Three Words
continue
isdigit
False
True
split
Linear in len(data)
Non-unique Elements
KeyError
except
try
if-comprehension
list-comp
2
A nice looping exercise
Even the Last
enumerate
not
sum
if-comprehension
comprehension
Electronic Station
First
Boolean Algebra
not
lambda
or
inline-if
and
Straightforward solution
Brackets
values
keys
pop
in
elif
Use bad eval to prevent a second type transform
Digits Multiplication
eval
filter
lambda
join
str
1
Scientific Expedition
Memory intensive, but quick (I expect)
The Most Wanted Letter
fromkeys
ascii_lowercase
string.ascii_lowercase
findall
re.findall
Learning something new every day
Pangram
ascii_lowercase
string.ascii_lowercase
filter
string
map
Can it be done shorter?
Common Words
set
lambda
sorted
join
split
1
A perfect use for collections.deque
Letter Queue
collections.deque
deque
collections
join
elif
Too easy
Absolute Sorting
abs
lambda
sorted
Let's try list comprehension for a change
Secret Message
isupper
join
if-comprehension
list-comp
comprehension
1
O'Reilly
Exhaustive search
Xs and Os Referee
yield
all
continue
list-comp
range
Straightforward inversion count
Count Inversions
enumerate
sum
comprehension
for
Obvious oneliner
Index Power
lambda
inline-if
len
Median by a integer-division trick
Median
math.ceil
ceil
math
sorted
len
Incinerator
Made it; still don't like how it behaves though
Friends
class
KeyError
frozenset
union
add
Straightforward
Building Base
class
format
Mine
Looping instead of typing
Fizz Buzz
not
inline-if
join
append
str
Why think hard if the solution is builtin!
Binary Count
bin
count
Clear for me, maybe creative for others, but can probably be made faster
Moore Neighbourhood
itertools.product
product
itertools
remove
not
Ice Base
Straightforward calculation of clock angle
Clock Angle
round
min
abs
int
7
Collect friends to make for an easy check of friendship
How to Find Friends
update
is
remove
continue
None
Solve integer relation to find amount of fed pigeons
Feed Pigeons
lambda
inline-if
while
int
if
1
Nice use case for filter
Monkey Typing
filter
lower
lambda
in
list
One digit at a time
Roman Numerals
range
for
Still missing a minmax function in Python
The Most Numbers
len
for
if
GitHub
Force suffix and words next to each other
The End of Other
startswith
any
zip
sorted
comprehension
Using the not-so-well-known second version of type()
Solution for Anything
type
lambda
True
1
Dropbox
An excellent task to use for-else
Numbers Factory
enumerate
break
not
sum
while
20
1
Just couldn't get rid of the double loop
The Longest Palindromic
range
comprehension
len
for
if
1
A clear solution, I hope, with some weird formatting
Three Points Circle
math.sqrt
sqrt
findall
re.findall
float
PyCon TW
Requires some optimization
House Password
islower
any
isupper
isdigit
not
Storage
Could be optimized to prevent multiple passes over the data
Weak Point
tuple
zip
map
index
min
Case of premature optimisation?
Moria Doors
union
intersection
yield
findall
re.findall
HubSpot
Abusing nonlocal to calculate a sum
Restricted Sum
add
map
list
Use 'bin' function to calculate hamming distance
The Hamming Distance
bin
count
2
Using optional argument to 'int'
Number Base
ValueError
except
try
int
Blizzard
Try-While-Except: you don't see that everyday!
Min and Max
StopIteration
iter
next
get
except
Loads of nesting
Radiation Search
itertools.product
product
itertools
continue
enumerate
Watchtower
That's some deep nesting...
Numbered Triangles
itertools.permutations
permutations
yield
filter
itertools
7
Needs a better algorithm to determine the key (length)
Vigenere Cipher
chr
any
ord
zip
enumerate
12