22
siebenschlaefer
10 27 32
2866/ 2945
Matthias
Last seen 2 years ago
Member for 8 years, 11 months, 14 days
Difficulty Normal
Missions (139) / Solutions (150)
Best solutions / Newest solutions
Home
First
Non-unique Elements
collections.Counter
Counter
collections
if-comprehension
list-comp
4
"Ils sont l'âme des Echecs." (Philidor)
Pawn Brotherhood
chr
any
format
ord
if-comprehension
First
Days Between
date
datetime.date
datetime
abs
Second
Right to Left
replace
join
First
Even the Last
enumerate
not
sum
if-comprehension
comprehension
Second
Even the Last
not
sum
if
First
Right to Left
replace
join
comprehension
First
Three Words
re.I
I
re.search
search
r-string
Electronic Station
Random fact: The Przewalski’s horse is the only truly wild horse species still in existence.
Find Sequence
enumerate
False
True
len
for
First
Digits Multiplication
mul
operator.mul
operator
functools.reduce
reduce
First
Boolean Algebra
bool
not
lambda
or
and
Random fact: John Adams the 2nd president of the USA had a dog named Satan.
Brackets
dict
pop
not
or
in
Python: Batteries Included.
Verify Anagrams
collections.Counter
Counter
collections
replace
lower
Scientific Expedition
Random fact: Woody Harrelson's father was a contract killer.
Letter Queue
startswith
pop
join
elif
append
1
First
I Love Python!
mul
operator.mul
raise
divmod
operator
First
Pangram
isalpha
set
lower
if-comprehension
comprehension
Random fact: Warren Beatty and Shirley MacLaine are siblings.
The Hidden Word
itertools.zip_longest
zip_longest
translate
itertools
find
Random fact: Three of every four creatures on earth are insects.
Call to Home
collections.defaultdict
defaultdict
re.compile
compile
values
Random fact: The technical term for a cat’s hairball is a “bezoar”.
Bird Language
re.sub
sub
r-string
re
Random fact: A big band has at least 14 different instruments.
Cipher Map
reversed
zip
enumerate
join
if-comprehension
Second
Pangram
ascii_lowercase
string.ascii_lowercase
string
all
set
Random fact: A baby spider is called a spiderling.
The Most Wanted Letter
next
ascii_lowercase
string.ascii_lowercase
collections.Counter
Counter
First
Secret Message
isupper
join
if-comprehension
comprehension
It's neither decimal nor binary nor morse.
Morse Clock
translate
format
zip
join
list-comp
First
Common Words
set
sorted
join
split
First
Absolute Sorting
abs
sorted
O'Reilly
Similar to Majority Merge for SCSS
Determine the Order
OrderedDict
collections.OrderedDict
startswith
union
any
First
Count Inversions
combinations
itertools.combinations
itertools
sum
comprehension
1
Random fact: There are no clocks in Las Vegas gambling casinos.
Flatten a List
isinstance
inline-if
sum
list
comprehension
2
Random fact: Humans blink over 10.000.00 times a year.
Flatten a List
isinstance
functools.reduce
reduce
functools
lambda
Random fact: The plastic things on the end of shoelaces are called aglets.
Median
sorted
else
len
if
Random fact: The total number of steps in the Eiffel Tower are 1665.
Xs and Os Referee
chain
itertools.chain
itertools
tuple
in
3
First
Index Power
len
if
Incinerator
First
Friends
class
KeyError
frozenset
union
set-comp
First
Building Base
class
format
Mine
Random fact: Heart attacks are more likely to happen on a Monday.
Currency Style
translate
re.sub
sub
r-string
re
Brute force recursive coloring
Color Map
setdefault
copy
yield
get
any
Random fact: Cherophobia is the fear of fun.
Moore Neighbourhood
itertools.product
product
itertools
sum
if-comprehension
1
Random fact: One in every four Americans has appeared on TV.
Achilles and the Tortoise
Random fact: There are more telephones than people in DC.
Achilles and the Tortoise
Random fact: A baby octopus is about the size of a flea when it is born.
The Greatest Common Divisor
functools.reduce
reduce
functools
lambda
inline-if
Random fact: The Titanic was the first ship to use the SOS signal.
The Greatest Common Divisor
fractions.gcd
gcd
fractions
functools.reduce
reduce
Second
Binary Count
bin
count
First
Fizz Buzz
or
join
append
str
for
First
Binary Count
bin
sum
comprehension
int
Ice Base
Straightforward
Clock Angle
round
map
min
abs
split
Random fact: Otters sleep holding hands.
Counting Tiles
math.ceil
ceil
math
sum
range
Random fact: The Comedy of Errors is Shakespeare’s shortest play at just 1,770 lines long.
Counting Tiles
math.ceil
ceil
math
lambda
sum
Disjoint Sets, the hero I needed
How to Find Friends
repr
class
setdefault
chain
itertools.chain
Romanes eunt domus
Roman Numerals
for
Second
Monkey Typing
lower
sum
in
comprehension
First
Monkey Typing
lower
inline-if
sum
in
comprehension
itertools FTW
Feed Pigeons
itertools.accumulate
accumulate
itertools.count
iter
next
First
The Most Numbers
min
max
not
if
Alice In Wonderland
Random fact: The international telephone dialing code for Antarctica is 672.
The Shortest Knight's Path
yield
all
tuple
ord
zip
Random fact: Buzz Aldrin rapped with Snoop Dogg.
Digits Doublets
collections.namedtuple
namedtuple
heappush
heapq.heappush
heappop
Zip-a-Dee-Doo-Dah
Transposed Matrix
zip
list-comp
list
comprehension
Random fact: Elvis Presley was naturally blonde.
Multiplication Table
bin
sum
comprehension
int
Random fact: Johnny Cash wrote the science fiction novel “The Holografik Danser” in 1953.
Multiplication Table
bin
count
GitHub
Random fact: Between 25% and 33% of the population sneeze when exposed to light.
The Most Frequent Weekdays
calendar.isleap
isleap
calendar.day_name
day_name
calendar.weekday
4
1
Random fact: Ecuador and Chile are the only two countries in South America that do not share a border with Brazil.
Shooting Range
abs
not
or
int
if
Random fact: Louis XIV owned 413 beds.
Broken Clock
match
re.match
datetime.datetime
r-string
datetime
"Algorithm, you are A*"
Open Labyrinth
collections.namedtuple
namedtuple
heappush
heapq.heappush
heappop
1
First
The End of Other
itertools.permutations
permutations
endswith
any
itertools
def __vote__(self): return 5
Solution for Anything
class
lambda
True
1
Random fact: Abraham Lincoln was carrying Confederate money when he was assassinated.
Area of a Convex Polygon
iter
next
yield
abs
sum
Dropbox
Second
Numbers Factory
reversed
join
while
append
range
First
The Best Number Ever
itertools.count
raise
reversed
functools.reduce
reduce
1
Random fact: Paraskavedekatriaphobia is the fear of Friday the 13th.
Speech Module
extend
join
append
if
Piece of Cake
Simple Hashlib
hashlib.new
new
hashlib
There must be a more elegant way
Friendly Number
Decimal
decimal.Decimal
decimal
float
format
Random fact: Samhainophobia is the fear of Halloween.
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
First
Numbers Factory
divmod
collections.defaultdict
defaultdict
any
items
PyCon TW
Yay for reusing a_star_search
Express Delivery
collections.namedtuple
namedtuple
heappush
heapq.heappush
heappop
Bird goes "heap".
Network Attack
heappush
heapq.heappush
heappop
heapq.heappop
heapq
Straightforward
Golden Pyramid
enumerate
max
list-comp
list
comprehension
First
How Much Gold
Fraction
fractions.Fraction
fractions
raise
ValueError
First
Robot Sort
format
sorted
join
while
append
Disjoint Sets FTW
Calculate Islands
repr
itertools.count
class
setdefault
union
Random fact: The elephant is the only animal with 4 knees.
House Password
islower
any
isupper
isdigit
comprehension
Random fact: Bikinis and tampons were invented by men.
Simple Areas
raise
math.pi
pi
math.sqrt
sqrt
Straightforward
Digit Stack
partition
raise
ValueError
pop
inline-if
Storage
First
Exec Quine
repr
chr
join
9
1
Random fact: The word “nerd” was first coined by Dr. Seuss in “If I Ran the Zoo”.
Word Pattern
isdigit
inline-if
join
comprehension
int
10
Random fact: The Pokémon Hitmonlee and Hitmonchan are based off of Bruce Lee and Jackie Chan.
Restricted Prime
dict-comp
get
map
enumerate
set
Bird goes "heap".
Digging a Canal
heapify
heapq.heapify
heappush
heapq.heappush
heappop
First
Mind Switcher
union
yield
add
continue
enumerate
Random fact: The average horse’s heart weighs approximately 9 or 10 pounds.
Moria Doors
finditer
re.finditer
re
set
max
See "haversine formula" in Wikipedia
Earth Distances
math.atan2
atan2
math.cos
cos
collections.namedtuple
Bruce Schneier woundn't recommend it.
Playfair Cipher
OrderedDict
collections.OrderedDict
digits
string.digits
itertools.product
Random fact: In 1970, Bill was arrested for trying to smuggle 10 lbs of marijuana through Chicago.
The Rows of Cakes
fractions.gcd
gcd
fractions
combinations
itertools.combinations
Random fact: A crocodile can’t poke its tongue out.
Square Spiral
divmod
zip
enumerate
abs
sum
"Heap heap" makes the bird.
Digging a Canal
heapify
heapq.heapify
heappush
heapq.heappush
heappop
Random fact: The Austrian department of transportation stated that you don't need a driver's license for a hoverboard.
Saw the Stick
itertools.accumulate
accumulate
itertools.takewhile
takewhile
itertools.count
Random fact: It takes about 600 cows to make one full season’s worth of NFL footballs.
Saw the Stick
itertools.accumulate
accumulate
itertools.takewhile
takewhile
itertools.count
Random fact: Horses produce approximately 10 gallons of saliva a day.
Weak Point
zip
enumerate
sum
sorted
list-comp
Random fact: Forrest fires move faster uphill than downhill.
Skew-symmetric Matrix
all
tuple
zip
comprehension
HubSpot
Process sides in the order 0..n-1 0..n-1
Auto Painting
map
join
range
list
comprehension
1
Random fact: If a horse has a red ribbon on its tail, it kicks.
Restricted Sum
len
if
Random fact: A “zonky” is a cross between a zebra and a donkey.
The Hamming Distance
math.log
log
format
math
zip
First
Number Base
ValueError
except
try
int
Blizzard
First
Radiation Search
repr
class
setdefault
union
iter
1
Piece of Cake
Safe Coasts
yield
enumerate
pop
join
while
Random fact: St. Stephen is the patron saint of bricklayers.
Spaceship Landing Strip
chain
itertools.chain
itertools
enumerate
pop
Random fact: A typical banana travels 4,000 miles before being eaten
Unlucky Days
FRIDAY
calendar.FRIDAY
calendar.weekday
weekday
calendar
Random fact: When you blush, the lining of your stomach also turns red.
String Conversion
min
range
len
for
if
Law of Cosines
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
Friday, friday, gotta get down on friday
Weekend Counter
divmod
int
First
Stressful Subject
re.I
I
endswith
re.search
search
To the max! (or min, it's up to you)
Min and Max
StopIteration
iter
next
is
None
Rock
Random fact: In early comics Batman used guns and killed criminals.
Web Log Sessions
datetime.timedelta
timedelta
re.compile
compile
yield
Random fact: Mary Stuart became Queen of Scotland when she was only six days old.
CheckSum
divmod
re.sub
sub
r-string
ord
1
Random fact: Polar bears are the largest land predators on earth.
Parity Bit Generator
chr
bin
count
join
if-comprehension
I'm addicted to itertools.
Life Counter
chain
itertools.chain
iter
next
reversed
Random fact: Tiger cubs are vulnerable in their first few months, with mortality as high as 50%.
Berserk Rook
yield
index
break
except
try
Shelter
Random fact: The human heart creates enough pressure to squirt blood 9 meter.
ADFGVX Cipher
OrderedDict
collections.OrderedDict
fromkeys
itertools.zip_longest
zip_longest
First
One line Drawing
setdefault
iter
next
add
items
First
Ghosts Age
index
inline-if
while
in
len
Random fact: Most serial killers in the U.S. are Caucasian (84%), approximately 16% are African American.
Pattern Recognition
itertools.product
product
itertools
list-comp
range
Codeship
First
Bats Bunker
collections.namedtuple
namedtuple
heappush
heapq.heappush
heappop
1
512 is my highscore *sigh*
Behind 2048
iter
itertools.product
product
next
any
Random fact: George Washington grew marijuana in his garden.
Probably Dice
enumerate
range
for
if
Random fact: 1 in 5,000 north Atlantic lobsters are born bright blue.
Probably Dice
math.factorial
factorial
round
math
sum
1
A* again
8 Puzzle
collections.namedtuple
namedtuple
heappush
heapq.heappush
heappop
The Square Builder
The Square Chest
frozenset
union
add
min
set
Fractions FTW
Pearls in the Box
collections.namedtuple
namedtuple
Fraction
fractions.Fraction
fractions
Hermit
Random fact: In the Caribbean there are oysters that can climb trees.
Break Rings
isdisjoint
union
combinations
itertools.combinations
functools.reduce
18
Random fact:
The Good Radix
ValueError
pass
except
try
range
Pratt parser to the rescue
Simplification
classmethod
class
itertools.zip_longest
zip_longest
raise
Brute Force
Ore In The Desert
itertools.product
product
next
all
itertools
Random fact: New Zealand is part of Zelandie continent, of which, 93% is submerged.
Colder-Warmer
typing.Sequence
Sequence
random.choice
choice
math.hypot
Some index juggling
Keywords Finder
find
map
pop
max
lower
Random fact: Cats spend nearly 1/3 of their waking hours cleaning themselves.
The Good Radix
max
range
int
for
if
A* feels like cheating
Anagrams By Stacks
itertools.takewhile
takewhile
collections.namedtuple
namedtuple
heappush
Random fact: A cat usually has about 12 whiskers on each side of its face.
The Good Radix
StopIteration
next
ord
except
try
Hamming distance, hooray!
Mono Captcha
raise
dict-comp
ValueError
items
zip
Watchtower
Random fact: Abraham Lincoln was the first president to ever be photographed at his inauguration.
Compare Functions
is
strip
pop
None
except
3
5
First
Numbered Triangles
reverse
yield
ValueError
all
map
15
1
Generators FTW
Numbered Triangles
itertools.permutations
permutations
yield
ValueError
itertools
16
Random fact: It is illegal for foreigners and non-citizens to take Indian currency (rupees) out of India.
Ethernet Ring Dimensioning
rindex
StopIteration
math.ceil
ceil
collections.defaultdict
18
1
Random fact: Dying is illegal in the Houses of Parliaments.
DNA Common Sequence
set-comp
enumerate
set
max
or
19
Random fact:
Bulls and Cows
random.choice
choice
random
itertools.product
product
The Law of 1/e
Bag of Santa Claus
math.e
e
math
False
True
Random fact: In 1916 Germany was the first country in the world to adopt daylight saving time, in the midst of WWI.
Convex Hull
typing.Sequence
Sequence
Tuple
typing.Tuple
reversed
Random fact: In every episode of Seinfeld there is a Superman somewhere.
Number Guess
filter
pop
max
lambda
or
Random fact: As a teenager Winston Churchill fell 29 feet from a bridge during a game of chase and remained unconsciousness for thre days.
Compare Functions
is
strip
pop
None
except
First
Vigenere Cipher
cycle
itertools.cycle
ascii_uppercase
string.ascii_uppercase
string
Random fact: Children grow faster in the springtime.
Rotate Hole
all
if-comprehension
list-comp
range
comprehension
Random fact: Karoke means “empty orchestra” in Japanese.
Funny Addition
sum