24
thealfest1
5 18 34
3367/ 3445
theALFEST
Last seen 5 months ago
Member for 5 years, 5 months, 5 days
Difficulty Normal
Missions (121) / Solutions (197)
Best solutions / Newest solutions
Initiation
Simple using //10
Number Length
while
int
5
6
Simple
Sum Numbers
isdigit
sum
if-comprehension
split
comprehension
7
2
1 line
Easy Unpack
tuple
comprehension
1
Simple
Nearest Value
min
abs
set
lambda
int
1
1 line
The Most Frequent
set
max
lambda
count
list
Simple - another
Max Digit
max
int
str
Third
Max Digit
max
comprehension
int
str
1
Simple 1-liner
All Upper I
upper
bool
str
1
Simple 1-liner using index()
Remove All Before
index
typing.Iterable
None
Iterable
typing
Obvious solution using split
First Word (simplified)
split
str
Simple
Beginning Zeros
break
while
int
str
len
4
Simple 2
Split Pairs
range
comprehension
len
short
All the Same
set
len
1
Simple loop using str
End Zeros
break
int
str
for
if
Simple
Split Pairs
inline-if
range
comprehension
len
Simple loop using divmod
End Zeros
divmod
break
not
while
int
1
Obvious len()
Acceptable Password I
bool
str
len
Simple using str
Max Digit
max
comprehension
int
str
Simple using &
Is Even
bool
not
int
1
Simple using slicing
Backward String
str
First
Count Digits
isdigit
sum
if-comprehension
comprehension
int
Obvious using %
Is Even
bool
not
int
Simple using len
Number Length
int
str
len
Second
Beginning Zeros
enumerate
break
int
str
for
Simple 1-liner
Beginning Zeros
int
str
len
1 line
All the Same
Any
typing.Any
List
typing.List
bool
2
obvious solution using slice
Between Markers (simplified)
index
str
Second
Count Digits
isdigit
sum
comprehension
int
str
Third
Count Digits
map
isdigit
lambda
sum
int
Fourth
Count Digits
isdigit
if-comprehension
list-comp
comprehension
int
Lambda
Easy Unpack
tuple
lambda
comprehension
1
First
Beginning Zeros
while
and
int
str
len
Third
Number Length
while
int
1
Home
1 line
Sort Array by Element Frequency
index
lambda
count
sorted
2
9
maxsplit
First Word
replace
lambda
split
2
2
4th
Morse Decoder
capitalize
join
split
comprehension
10
Third
Morse Decoder
capitalize
join
list-comp
split
comprehension
13
Lambda
First Word
replace
lambda
split
15
2
Simple 2 lines
Sun Angle
float
or
inline-if
1 line
Popular Words
dict-comp
dict
count
split
list
1
Simple
Split List
list
len
simple
Sun Angle
float
or
if
1
First
Morse Decoder
capitalize
split
for
First
Second Index
find
None
inline-if
int
str
1 line
Even the Last
inline-if
sum
2
second
Between Markers
find
inline-if
str
len
if
3
1 line
Non-unique Elements
count
if-comprehension
list
comprehension
Second
Morse Decoder
capitalize
join
list-comp
split
comprehension
1
second
Pawn Brotherhood
set-comp
chr
ord
set
or
1 line
Bigger Price
lambda
sorted
list
int
Simple 1 line
Backward Each Word
join
split
comprehension
str
2
First
Pawn Brotherhood
chr
add
ord
set
or
1
Third
Pawn Brotherhood
chr
ord
set
or
sum
2
1 line
Right to Left
replace
join
2
Lambda
Even the Last
lambda
inline-if
sum
1
First
Popular Words
dict-comp
dict
in
split
list
2
First
Three Words
isalpha
bool
False
True
split
1
First
Non-unique Elements
get
dict
if-comprehension
list-comp
list
Electronic Station
Simple
Digits Multiplication
divmod
while
int
if
2
4
Obvious isupper()
All Upper II
isupper
bool
str
4
2
5th
Boolean Algebra
not
or
and
8
faster
Digits Multiplication
divmod
or
while
int
9
Simple
Acceptable Password VI
isdigit
bool
set
not
or
1
1 line - Tuple of functions
Boolean Algebra
index
not
or
inline-if
and
Sorted + Set
Ascending List
typing.Iterable
Iterable
bool
set
typing
Second
Boolean Algebra
index
not
or
inline-if
and
Using < >
Acceptable Password III
isdigit
bool
sum
comprehension
str
First
Verify Anagrams
strip
isalpha
replace
not
in
2
Simple loop
Ascending List
typing.Iterable
None
Iterable
bool
typing
Simple
Acceptable Password V
isdigit
bool
not
or
sum
Third
Verify Anagrams
isalpha
sorted
if-comprehension
comprehension
1
using dictionary
Boolean Algebra
not
or
inline-if
and
1
Simple
Acceptable Password III
any
isdigit
bool
not
and
Simple
Acceptable Password IV
isdigit
bool
or
sum
comprehension
Simple
Acceptable Password II
any
isdigit
bool
and
comprehension
Simple
Boolean Algebra
index
not
or
inline-if
elif
simple using lists
Verify Anagrams
remove
isalpha
not
if-comprehension
in
Simple using reduce
Digits Multiplication
functools.reduce
reduce
functools
lambda
or
1
Scientific Expedition
Simpler
Call to Home
values
get
dict
sum
split
5
2
First
Time Converter (24h to 12h)
inline-if
int
str
6
3
Simple
Goes Right After
find
bool
str
6
4
First
Goes Right After
find
bool
inline-if
False
str
19
First
Call to Home
math.ceil
ceil
values
float
get
1
1 line - shorter
Conversion from CamelCase
isupper
join
comprehension
1
one(2)-liner
Morse Clock
bin
replace
join
list-comp
split
1
Second
Bird Language
isspace
replace
or
while
in
2
Simple - 5 lines
Pangram
False
True
for
if
2
First
Bird Language
continue
isalpha
in
elif
for
3
Simple
Common Words
set
sorted
join
split
comprehension
Lambda
Secret Message
istitle
lambda
join
if-comprehension
comprehension
First
Conversion from CamelCase
isupper
for
if
4th
Bird Language
isalpha
inline-if
in
else
for
Lambda
Pangram
not
lambda
if-comprehension
list-comp
comprehension
1
1 line
Secret Message
istitle
join
if-comprehension
comprehension
str
Simple corrected
Goes Right After
find
bool
str
2
First
I Love Python!
1
First
Striped Words
isspace
upper
isalpha
break
isdigit
1 line
Absolute Sorting
tuple
abs
lambda
sorted
list
Third
Bird Language
isalpha
inline-if
in
else
int
1
1 line
Conversion into CamelCase
title
join
split
comprehension
1 line
Conversion from CamelCase
isupper
inline-if
join
comprehension
Lambda with filter
Secret Message
istitle
filter
lambda
join
str
1
Lambda
The Most Wanted Letter
max
lower
lambda
count
1
O'Reilly
First
The Flat Dictionary
update
type
is
dict
items
7
1
Sort with tuple
Frequency Sorting
lambda
count
sorted
7
simple loop
Chunk
typing.Iterable
Iterable
typing
append
range
18
Simple using list comprehension
Chunk
typing.Iterable
Iterable
typing
list-comp
range
1
Simpler using count
Majority
bool
count
False
True
list
1
Simple recursive
Flatten a List
type
extend
is
append
list
1
Simple using sum()
Majority
bool
sum
list
len
lambda
Count Inversions
enumerate
lambda
sum
comprehension
1
Simple using count
Majority
bool
count
inline-if
False
True
Simple
Replace Last
insert
pop
typing.Iterable
Iterable
typing
Shorter
Replace Last
insert
pop
len
if
1 line
Index Power
inline-if
list
int
len
Simple 1-liner using index()
Remove All After
index
typing.Iterable
Iterable
typing
inline-if
Simple
Median
sum
sorted
int
len
lambda
Index Power
lambda
inline-if
len
1
second
Xs and Os Referee
List
typing.List
break
not
typing
2
using statistics
Median
statistics.median
statistics
median
sorted
1
First
Count Inversions
range
list
len
for
if
1
Incinerator
using tuple
Multicolored Lamp
class
10
1
second
Microwave Ovens
class
divmod
type
is
pass
10
2
Second
3 Chefs
class
f-string
12
Second
Hacker Language
class
isspace
isnumeric
chr
bin
16
1
First
3 Chefs
class
super
format
19
Simple
Hacker Language
class
isspace
isnumeric
chr
bin
Simple
Microwave Ovens
class
divmod
type
is
pass
1
First
Capital City
class
if
First
The Warriors
class
property
super
not
while
Simple - 15 lines
Party Invitations
class
hasattr
add
remove
set
Mine
Simple
The Greatest Common Divisor
while
for
12
2
1 line updated
Caesar Cipher (encryptor)
isspace
chr
ord
inline-if
join
3
1 line
Fizz Buzz
not
inline-if
int
str
1
First
Moore Neighbourhood
continue
and
len
for
if
1
1 line
Binary Count
bin
sum
comprehension
int
1
Second 1-liner
Binary Count
bin
count
1 line
Caesar Cipher (encryptor)
isspace
chr
ord
inline-if
join
2
1 line
Best Stock
items
max
lambda
1
Second
Moore Neighbourhood
continue
and
len
for
if
Ice Base
the simplest
Morse Encoder
join
comprehension
9
1 line (variation)
Monkey Typing
set
lower
sum
in
comprehension
11
1 line
Monkey Typing
set
lower
sum
if-comprehension
in
17
3
4th
Reverse Roman Numerals
replace
count
for
1
1 line
Long Repeat
max
inline-if
if-comprehension
in
range
Second
Long Repeat
inline-if
elif
for
if
3
First
Reverse Roman Numerals
keys
replace
count
sorted
list
Second
Monkey Typing
set
lower
sum
if-comprehension
in
1
simple
Largest Rectangle in a Histogram
min
max
append
range
len
Second
Reverse Roman Numerals
keys
replace
count
for
1
1 line
The Most Numbers
min
max
inline-if
len
2
Third
Reverse Roman Numerals
items
replace
count
for
1
First
Long Repeat
inline-if
elif
for
if
2
Lambda
The Most Numbers
min
max
lambda
inline-if
1
First
Roman Numerals
items
while
for
Alice In Wonderland
First
Swap Nodes
range
list
len
for
14
First
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
inline-if
Lambda
Swap Nodes
lambda
inline-if
range
comprehension
len
1
GitHub
Simple using nested loop
Expand Intervals
typing.Iterable
Iterable
typing
append
range
First
Merge Intervals
tuple
min
set
max
not
First
Long Repeat Inside
find
range
len
for
if
1
second
Long Repeat Inside
find
and
range
len
for
2
Dropbox
Obvious
Simple Hashlib
hashlib.new
new
hashlib
7
1
Simple
Atbash Cipher
isalpha
index
inline-if
join
comprehension
2
The Best Number Ever
print
First
Humpty Dumpty Form
math.log
log
math.asin
asin
math.pi
1 line
Worth of Words
dict-comp
items
max
lambda
sum
1
Simple
Worth of Words
for
if
PyCon TW
Simple - 15 lines
Calculate Islands
or
sorted
append
range
len
2
Simple using ifs and list
Digit Stack
pop
inline-if
in
elif
append
First
Calculate Islands
clear
add
continue
set
not
First
Simple Areas
math.pi
pi
math
sum
elif
1
First
Double Substring
count
and
range
len
for
3
using list and set
House Password
isupper
isdigit
bool
set
inline-if
1
Storage
Simple
Skew-symmetric Matrix
False
True
range
len
for
2
First
Group Equal consecutive
None
inline-if
append
else
for
HubSpot
Another one
Non Empty Lines
splitlines
strip
sum
if-comprehension
comprehension
2
First
Non Empty Lines
splitlines
strip
bool
sum
comprehension
12
simple
Number Base
except
try
int
str
2
Simpler
Number Base
except
try
int
str
1
First
Restricted Sum
inline-if
len
Blizzard
Simple
The First Working Day
datetime.timedelta
timedelta
as
date
datetime.date
6
Using numpy
Weekend Counter
arange
numpy.arange
datetime.timedelta
timedelta
numpy
6
Another one
The First Working Day
datetime.timedelta
timedelta
as
date
datetime.date
16
Shorter
The First Working Day
datetime.timedelta
timedelta
as
date
datetime.date
17
Simple 1 line
Unlucky Days
date
datetime.date
datetime
sum
range
19
Simple
Unlucky Days
date
datetime.date
datetime
sum
if-comprehension
First
Min and Max
iter
get
None
inline-if
sorted
4
Second
Min and Max
iter
get
None
max
inline-if
1
Simple while loop
Weekend Counter
datetime.timedelta
timedelta
datetime
while
1
Rock
Simple loop
Sort by Removing
continue
None
and
append
list
Shelter
Simple
The Nearest Square Number
int
Watchtower
lambda
Funny Addition
lambda
sum
Escher
Second
Ground for the House
min
max
inline-if
split
range
8
3
First
The Ship Teams
items
or
sorted
if-comprehension
list-comp
18
1
Simple
Ground for the House
inline-if
split
range
len
for
4
Not On Map
Using numpy
Base change - Position System
base_repr
numpy.base_repr
numpy
str
1