31
Ylliw
12 35 55 Leader of the month
5504/ 5695
Last seen 3 years ago
Member for 6 years, 6 months, 21 days
Difficulty Normal
Missions (264) / Solutions (286)
Best solutions / Newest solutions
Initiation
Golf and correct for all cases (only upper the first letter)
Correct Sentence
upper
lambda
2
3
Golf
First Word (simplified)
lambda
split
4
Golf
Between Markers (simplified)
index
lambda
5
1
Second
The Most Frequent
count
sorted
12
1
Golf lambda trial
Split Pairs
lambda
inline-if
list-comp
range
comprehension
16
First
Easy Unpack
tuple
map
lambda
1
Golf
All the Same
all
lambda
list-comp
comprehension
1
Speed, speed, speed
Nearest Value
min
abs
lambda
list-comp
comprehension
First
The Most Frequent
lambda
count
sorted
Very efficient
All the Same
all
lambda
comprehension
1
Golf
Multiply (Intro)
lambda
1
Home
Puzzling
Sun Angle
ord
lambda
inline-if
sum
list-comp
2
4
FirstLambda, golf
Sort Array by Element Frequency
index
lambda
count
sorted
3
2
Enhanced
Second Index
find
None
lambda
inline-if
8
1
First
Even the Last
inline-if
sum
10
Golf
First Word
findall
re.findall
r-string
re
lambda
16
Fastest?
Three Words
enumerate
isalpha
False
and
True
2
First
Right to Left
replace
join
list-comp
comprehension
1
First
Morse Decoder
capitalize
join
list-comp
split
comprehension
First
Three Words
isalpha
False
and
True
list-comp
1
First
Date and Time Converter
datetime.strptime
strptime
datetime.datetime
datetime
lstrip
First
Between Markers
escape
re.escape
re.search
search
re
One liner
Bigger Price
lambda
sorted
True
list
int
One liner
Popular Words
dict-comp
dict
lower
count
split
First
Days Between
date
datetime.date
datetime
abs
Electronic Station
lru_cache and operator => function can be written in 2 functions of one line
Mathematically Lucky Tickets
operator.truediv
truediv
operator.sub
functools.lru_cache
lru_cache
4
1
First
Verify Anagrams
replace
lower
lambda
sorted
6
1
1-Liner Golf
Can You Pass?
lambda
list-comp
comprehension
6
Just for fun, code it without using 're'
Unix Match. Part 1
any
pop
bool
count
while
12
Efficient
Ascending List
typing.Iterable
Iterable
bool
typing
False
13
First
Surjection Strings
enumerate
bool
in
False
True
18
One-liner
Ascending List
all
lambda
list-comp
range
comprehension
That was interesting
Remove Brackets
pass
sort
set
lambda
join
2
First
Boolean Algebra
not
or
and
First
Inside Block
all
min
max
not
lambda
First
Digits Multiplication
inline-if
int
str
for
1
Scientific Expedition
Lambda golf
Time Converter (24h to 12h)
f-string
lambda
split
int
2
1-Liner Golf
Conversion into CamelCase
capitalize
lambda
join
list-comp
split
5
First
Letter Queue
in
elif
for
if
5
First
Secret Message
isupper
join
if-comprehension
list-comp
comprehension
6
First
Remove Accents
normalize
unicodedata.normalize
unicodedata
inline-if
8
First
Bird Language
print
while
in
True
len
9
3
Second shorter Golf
Time Converter (24h to 12h)
f-string
lambda
split
int
17
2
Single lambda using re
Striped Words
re.I
I
findall
re.findall
format
17
First
The Hidden Word
itertools.zip_longest
zip_longest
itertools
find
map
18
Full lambda
Morse Clock
bin
map
replace
lambda
inline-if
20
Lambda, reduce
Follow Instructions
functools.reduce
reduce
functools
map
lambda
Golf
Pangram
chr
upper
map
set
lambda
Let's make a short story long
Caps Lock
upper
pop
inline-if
while
False
First
YAML. More Types
strip
pass
dict
None
replace
Nothing fancy
YAML. Simple Dict
strip
pass
dict
except
try
1
First
Conversion from CamelCase
isupper
pop
lower
while
list
First
Cipher Map
items
enumerate
sorted
join
list-comp
Nice, short
Common Words
findall
re.findall
re
set
lambda
First
Absolute Sorting
abs
sorted
O'Reilly
Golf, lambda => 74 chars
Flatten a List
type
lambda
inline-if
list-comp
comprehension
7
Lambda
How Deep
type
max
lambda
inline-if
list-comp
13
First
The Flat Dictionary
update
isinstance
dict-comp
dict
items
19
First
Frequency Sorting
dict-comp
sort
lambda
True
comprehension
To decypher it, well ... let's encode it
Cipher Crossword
chain
itertools.chain
extend
get
dict
First
Loading Cargo
inline-if
sum
else
int
if
Almost Golf
Count Inversions
sum
if-comprehension
and
list-comp
range
First
Time Converter (12h to 24h)
format
replace
split
int
str
First
Determine the Order
enumerate
index
min
lambda
sorted
Last first, first last
Median of Three
typing.Iterable
Iterable
typing
lambda
sorted
First
Median
sorted
else
len
if
Incinerator
First
Multicolored Lamp
class
1
Full Standard
Text Editor
class
None
append
else
if
1
First
Every Person is Unique
class
f-string
format
replace
int
2
1
First
Army Units
class
if
First
Capital City
class
None
not
if
That was easy
Voice TV Control
class
type
in
else
int
bip bidip bidip bip biiiip
Dialogues
class
f-string
add
None
inline-if
1
First
The Vampires
class
hasattr
super
pass
pop
Not finish for decoding, but all checks passed
Hacker Language
class
chr
bin
ord
isalpha
First
Party Invitations
class
remove
append
else
for
First
The Defenders
class
super
pass
pop
while
First
Army Battles
class
super
pass
pop
while
Nothing special
The Warriors
class
super
pass
while
and
First
Building Base
class
format
1
First
Friends
class
add
set
not
inline-if
Mine
All Lambda and golfy
Fast Train
all
any
lambda
inline-if
if-comprehension
1
Single lambda line
Best Stock
max
lambda
2
Wish I could fly - Hugly 1e9
Escape
min
max
lambda
inline-if
in
4
3
Golf
Cut Sentence
rfind
max
lambda
inline-if
len
4
1
First
Fast Train
extend
all
items
List
typing.List
4
1
First
Fizz Buzz
True
str
6
3
Golf
The Greatest Common Divisor
lambda
and
6
Gof
Caesar Cipher (decryptor)
chr
islower
ord
lambda
inline-if
9
Tests passed but ['A','B'],['D','E'],['C','D'],['B','C'] is True familly but does not work wiht this code
What Is Wrong With This Family?
values
min
in
elif
False
12
Golf
Caesar Cipher (encryptor)
chr
ord
lambda
inline-if
join
17
1
First
Find Enemy
ord
abs
inline-if
else
if
Take it easy
Disposable Teleports
extend
pop
set
or
while
Complete with comments, procedure to show outcome and explanations
The Einstein Problem-Lite
raise
values
dict-comp
format
items
Lambda, golf
Achilles and the Tortoise
lambda
From left to right
Can Balance
enumerate
typing.Iterable
Iterable
typing
sum
First
Moore Neighbourhood
lambda
count
if-comprehension
and
list-comp
Fully documented, extra fast
Color Map
itertools.product
product
dict-comp
get
any
Ugly
Currency Style
re.split
r-string
enumerate
index
re
Works even with familly:['A','B'],['D','E'],['C','D'],['B','C'] (see other solution failling this test)
What Is Wrong With This Family?
values
min
while
in
elif
2
3rd party but still golfy
The Greatest Common Divisor
math.gcd
gcd
functools.reduce
reduce
functools
First
Binary Count
while
if
1
Ice Base
1-liner lambda
Clock Angle
map
min
lambda
split
int
5
One liner Golf, obfuscated
Find Quotes
lambda
if-comprehension
list-comp
range
comprehension
11
First
The Most Numbers
min
max
13
1
First
Identify Block
all
min
None
sorted
while
First
Counting Tiles
range
else
int
for
if
First
Making Change
dict
min
None
not
inline-if
First
Find Quotes
if-comprehension
list-comp
range
comprehension
len
Alice In Wonderland
Single Walker
Tree Walker
type
values
dict
pop
inline-if
1
2
Fully documented
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
lambda
5
1
Totally new code from previous YAML challenges
YAML. Complex Structure
popitem
Exception
object
raise
match
7
First
The Fastest Horse
find
index
min
max
list-comp
12
Too lazy to solve this incrementally, I first solve 'YAML complex' and re-use it here
YAML. List and Comments
popitem
Exception
object
raise
match
12
Easy
Swap Nodes
range
len
for
13
1-Liner: 276 chars
IP Network: Route Summarization
f-string
bin
map
min
max
15
1
First
Long Non Repeat
index
in
else
len
for
16
Lambda
Middle Characters
lambda
len
20
First
Transposed Matrix
numpy.array
array
numpy
as
lambda
First
Multiplication Table
bin
lambda
sum
join
list-comp
Golf
Multiplication Table
bin
lambda
sum
join
list-comp
Straight forward, euh... Straight zigzag
Zigzag Array
reversed
List
typing.List
typing
list-comp
First
Digits Doublets
set
lambda
count
if-comprehension
True
GitHub
First, fully documented, great mission
Power Plants
Dict
typing.Dict
typing.Set
Set
collections.namedtuple
1
4
Best use of GCD
Evenly Spaced Trees
math.gcd
gcd
functools.reduce
reduce
functools
1
Hardly readable, but single lambda
Searchlights
cmath.exp
cmath.phase
phase
cmath.pi
cmath
1
Second version, extremely fast, combining my first version and Phil15 solutions
Power Plants
Dict
typing.Dict
typing.Set
Set
heappush
2
2
One liner Golf
Expand Intervals
lambda
sum
list-comp
range
list
2
1
Golf, lambda, efficient
Cookies
strip
lambda
if-comprehension
list-comp
split
4
First
The Highest Building
index
None
while
in
len
8
First
Barcode Reader
any
zip
map
index
None
8
Golf
Cookies
dict-comp
lambda
list-comp
split
comprehension
9
Moving one by one, like reduce would do
Merge Intervals
max
while
else
len
if
10
First
Create Intervals
sorted
while
and
len
10
Golf
Open Labyrinth
dict-comp
items
while
if-comprehension
list
11
1
First, simple, straight forward
Searchlights
math.cos
cos
math.sin
sin
math.pi
11
First
Open Labyrinth
operator.add
operator
add
items
map
First
Simplify Unix Path
join
while
elif
and
append
1 line: 90 chars
The End of Other
itertools.permutations
permutations
as
any
itertools
2
First
Shooting Range
math.sqrt
sqrt
round
math
lambda
First
Power Supply
items
set
while
in
append
First
Area of a Convex Polygon
abs
lambda
while
len
1
First
The Most Frequent Weekdays
date
datetime.date
datetime
or
sorted
Dropbox
Lambda based
Worth of Words
sort
lambda
sum
True
list-comp
2
First
Simple Hashlib
hashlib.new
new
hashlib
2
1
10 lines
Text Formatting
center
textwrap.wrap
wrap
textwrap
ljust
2
1
Almost Golf
Worth of Words
max
lambda
sum
list-comp
comprehension
3
Direct brute force, no clean-up, lost of duplicate code parts
Text Formatting
math.ceil
ceil
math
enumerate
index
6
Quite easy with the proper regular expression
Nonogram Row
match
re.match
r-string
re
None
6
First
Hubspot Amulet
matrix
numpy.matrix
fractions.gcd
numpy.linalg
linalg
16
Very fast
Hubspot Amulet
matrix
numpy.matrix
fractions.gcd
numpy.linalg
linalg
17
Optimized, short, hopefuly still clear
Text Formatting
math.ceil
ceil
math
enumerate
lambda
Fully documented
Friendly Number
math.log
log
round
math
index
First
Speech Module
join
while
elif
else
if
First
Humpty Dumpty Form
round
map
abs
lambda
elif
PyCon TW
Maybe too slow for web interface but works perfectly locally
Unfair Districts
chain
itertools.chain
extend
pass
chr
1
Golfy
Ryerson Letter Grade
dict-comp
items
lambda
True
comprehension
2
1
First
Calculate Islands
any
map
enumerate
lambda
sum
5
Enhanced
Calculate Islands
any
enumerate
pop
lambda
print
13
1-liner not so simple
Simple Areas
math.pi
pi
math.sqrt
sqrt
math
14
2
Easy, so let's try to make a nicely documented code
Sum Consecutives
while
and
append
len
First
Digit Stack
inline-if
append
else
int
for
1
First
Golden Pyramid
break
sum
while
False
True
Second
Golden Pyramid
break
sum
while
False
True
Storage
Direct simple construction
Hexagon Spiral
class
f-string
map
abs
max
8
Lambda,Golf but slow. 'And'/'or' much faster than '+' or '*'
The Rows of Cakes
abs
lambda
count
sum
if-comprehension
16
First
Saw the Stick
break
sum
while
elif
True
18
Golf
Saw the Stick
lambda
if-comprehension
list-comp
range
comprehension
20
Straight forward with memorization
Battle Dice
itertools.product
product
get
dict
items
1-liner
Word Pattern
all
bin
zip
lambda
in
First
Weak Point
dict-comp
min
sum
list-comp
range
Straight forward
English to Braille Translator
zfill
extend
add
bin
map
First
The Rows of Cakes
abs
lambda
or
sum
if-comprehension
String and straight
Moria Doors
punctuation
string.punctuation
translate
string
dict
First
Skew-symmetric Matrix
list-comp
range
comprehension
len
Maya
So much fun
Light Up
Tuple
typing.Tuple
dict-comp
remove
map
1
Not as easy as I would have thought
Net Game
class
copy.deepcopy
deepcopy
copy
f-string
1
Second: Extra Fast
Light Up
Tuple
typing.Tuple
dict-comp
remove
map
2
1
Third, Lots of cleanup, more straight forward, very fast now
Signpost
class
values
dict-comp
all
dict
2
First fully functionnal and fast enough to pass
Signpost
class
copy.deepcopy
deepcopy
copy
f-string
3
Cleaned version, should be reable, it's fast and efficient
Signpost
class
copy.deepcopy
deepcopy
copy
f-string
6
5
FirstFinally, needed a lot of optimization to not consume to much resource or time
Inertia
KeyError
frozenset
raise
Tuple
typing.Tuple
13
HubSpot
Documented and fast
Supply Line
raise
type
is
dict-comp
chr
2
64 chars with explanations
Univocalic davasaan
lambda
3
1
67 chars.
Univocalic davasaan
lambda
3
1
Clear, Documented and a golf version as bonus
Square Board
Tuple
typing.Tuple
typing
int
8
1
When complex numbers makes things simplier
Inscribe a Contour
cmath.exp
cmath.phase
phase
cmath.pi
cmath
9
1
73 char: Vara antarastang galf, dafanatala nat aasa
Univocalic davasaan
lambda
and
14
1-liner lambda
Auto Painting
min
lambda
join
list-comp
range
16
First
Node Disconnected Users
set
sum
while
if-comprehension
in
First
City's Happiness
values
dict-comp
pass
items
enumerate
Golf, recursive, like reduce would do
Restricted Sum
lambda
inline-if
len
First
Number Base
index
in
else
for
if
1-Liner Golf
The Hamming Distance
ljust
bin
zip
lambda
sum
Blizzard
1-liner
Permutation Index
enumerate
lambda
sum
comprehension
len
1
5
2-liners (lambda)
Reversed Permutation Index
math.factorial
factorial
tuple
math
lambda
1
First
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
3
Use numpy and shortcuts to increase efficiency (long code version)
Spaceship Landing Strip
numpy.array
array
numpy
break
not
6
Creative and obfuscated
Safe Coasts
ne
operator.ne
eq
operator.eq
operator
8
Golf
Safe Coasts
ne
operator.ne
eq
operator.eq
operator
9
First
The First Working Day
datetime.strptime
strptime
datetime.timedelta
timedelta
datetime.datetime
11
First
Unlucky Days
date
datetime.date
datetime
lambda
count
15
First
Weekend Counter
18
2
Golf
Stair Steps
max
lambda
inline-if
and
list-comp
19
First
Useless Flights
frozenset
copy
items
List
typing.List
Based on przemyslaw.daniel code, with a little enhancement
Useless Flights
update
dict
enumerate
not
or
sort of factorial base conversion
Reversed Permutation Index
math.factorial
factorial
insert
tuple
math
A bit of intelligence, a lot of trial/error
Sudoku Solver
Exception
raise
divmod
copy
all
First
Safe Coasts
all
any
enumerate
None
replace
First
Stressful Subject
isupper
isalpha
lower
join
if-comprehension
First
String Conversion
min
max
in
False
and
Second
Stressful Subject
isupper
isalpha
lower
join
if-comprehension
Straight forward
Radiation Search
collections.namedtuple
namedtuple
collections
remove
sort
Rock
1-liner, 137 char, fast and efficient
Most Efficient Cutting
index
min
set
not
lambda
3
2
2nd
Crossword Solver
update
all
add
enumerate
pop
3
Golf, lambda
Super Root
lambda
inline-if
5
Golf 2 (enhanced)
Super Root
lambda
inline-if
8
First
Web Log Sessions
datetime.strptime
strptime
datetime.timedelta
timedelta
datetime.datetime
12
First
Chicken Hunt
dict-comp
items
tuple
enumerate
min
13
Fully documented, finding seas and land, then grouping islands
Hexagonal Islands
typing.Set
Set
translate
itertools.product
product
13
Golf
Parity Bit Generator
chr
bin
lambda
count
join
16
Golf 2
Parity Bit Generator
chr
bin
lambda
count
join
17
First
Crossword Solver
update
all
add
enumerate
pop
Let's combine pipes!
Most Efficient Cutting
combinations
itertools.combinations
any
dict
itertools
First
Black Holes
class
math.asin
asin
object
math.pi
First
Water Jars
pop
set
lambda
inline-if
while
First
Berserk Rook
index
set
or
while
in
Shelter
Simple, efficient
Completely Empty
except
try
not
False
True
1
2
Straight forward, using 2D numpy matrix
Landing Site
typing.Set
Set
numpy.array
array
itertools.product
1
Was interesting to solve
Fortress Cannons
all
ord
enumerate
None
abs
1
Lambda
The Nearest Square Number
math.sqrt
sqrt
round
math
lambda
2
12 liners: Totally obfuscated
Delivery Drone
any
enumerate
pop
min
abs
2
Direct
Pattern Recognition
enumerate
True
range
len
for
6
The power of 'Label' from scipy.ndimage and numpy
Climbing Route
amax
numpy.amax
count_nonzero
numpy.count_nonzero
scipy.ndimage.label
7
Updated, scipy.ndimage.label, documented
Climbing Route
amax
numpy.amax
count_nonzero
numpy.count_nonzero
scipy.ndimage.label
8
Scary
Ghosts Age
while
in
and
9
mikael.desharnais' challenge
Pattern Recognition
itertools.product
product
as
itertools
lambda
12
mikael.desharnais' challenge version 2
Pattern Recognition
lambda
and
list-comp
range
comprehension
13
Just make it simple
Delivery Drone
any
List
typing.List
enumerate
pop
14
Boxing it down
Four To The Floor
extend
sort
pop
lambda
while
17
Simple 1-line code after str class overloading
Halloween Monsters
functools.lru_cache
lru_cache
class
Exception
raise
1
First
One line Drawing
copy
pass
items
remove
pop
First
ADFGVX Cipher
dict-comp
index
lower
lambda
inline-if
Codeship
First
Pearls in the Box
round
min
max
count
if
15
Line is sight is the difficulty
Bats Bunker
math.hypot
hypot
class
math.floor
floor
17
First
Probably Dice
range
for
if
1
Go go go
The Territory of Go
itertools.product
product
itertools
break
inline-if
All lambda & Golf
The Square Chest
all
min
lambda
sum
sorted
Let's make it a money problem
Unfair Dice
dict-comp
items
set
max
lambda
Hermit
Second version even Faster. Can someone be faster?
Count Consecutive Summers
lambda
sum
list-comp
range
comprehension
1
2
Second: Extra Fast
Colder-Warmer
ge
operator.ge
le
operator.le
ne
4
1
85 chars and still probably fastest code
Count Consecutive Summers
lambda
sum
list-comp
range
comprehension
8
1
Golf
Ore In The Desert
intersection
round
set
inline-if
if-comprehension
9
This code works even if test code from web make it crash
Colder-Warmer
add
dict
items
zip
abs
17
2
Let's make it lambda complex
The Good Radix
functools.reduce
reduce
functools
index
max
19
GCD, Reduce => simple
Fractions Addition
math.gcd
gcd
functools.reduce
reduce
functools
20
Ugly and not optimized
Network Loops
union
reversed
tuple
set
inline-if
Watchtower
1 long line of 425 characters
Ethernet Ring Dimensioning
values
dict-comp
zip
index
lambda
1
Is there anything better?
Funny Addition
sum
2
First
Rotate Hole
all
if-comprehension
list-comp
range
comprehension
3
2
Elementary? Definitely not for me
Broken Window
Tuple
typing.Tuple
set-comp
reversed
List
5
1
With some nice Class definition
Boundary Blocks
class
collections.deque
deque
Tuple
typing.Tuple
13
First
Number Guess
remove
in
and
range
list
19
1
3 trials to find the right strategy
DNA Common Sequence
functools.lru_cache
lru_cache
decorator
functools
index
Straight forward
Ethernet Ring Dimensioning
math.ceil
ceil
reversed
dict-comp
items
First
Compare Functions
None
except
try
not
or
First
Convex Hull
math.atan2
atan2
math
pop
index
Using namedtuple to make a clear code
Numbered Triangles
collections.namedtuple
namedtuple
collections
remove
set
Caesar
Vigenere Cipher
chr
ord
zip
map
break
Escher
First
Ground for the House
enumerate
min
max
in
split
4
2
First
Compass, Map and Spyglass
dict
enumerate
abs
max
in
5
Pushing hard
Card Game
zip
or
sorted
and
True
5
First
The Stone Wall
zip
enumerate
count
split
len
7
All lambda and hopefully still clear
Keys and Locks
functools.reduce
reduce
functools
any
zip
8
1-liner, 193 char, a real secret
The Secret Room
lambda
inline-if
10
1
From bottom up
The Stones
dict-comp
items
min
max
not
19
1
Cracked code
Safe Code
eval
any
remove
replace
if-comprehension
1
First
The Secret Room
dict-comp
index
max
lambda
sorted
2
Check one by one, stop if impossible
Card Game
pop
print
sorted
while
elif
All your treasures are belong to us
Treasures
f-string
items
min
lambda
sorted
First
The Ship Teams
items
sort
append
else
for
First
Wild Dogs
math.sqrt
sqrt
round
math
elif