21
lezeroq
10 23 44
2602/ 2695
Artyom Koval
Last seen 1 year ago
Member for 11 years, 7 months, 3 days
Difficulty Normal
Missions (144) / Solutions (148)
Best solutions / Newest solutions
Initiation
one-liner
All the Same
lambda
1
6
10 seconds coding
Count Digits
isdigit
sum
comprehension
int
str
8
First
Max Digit
map
set
max
int
str
one line: min + key + abs
Nearest Value
min
abs
set
lambda
int
First
Backward String
str
First
Beginning Zeros
lstrip
int
str
len
First
All Upper I
ascii_lowercase
string.ascii_lowercase
string
bool
set
First
Replace First
typing.Iterable
Iterable
typing
list
First
Acceptable Password I
bool
str
len
First
Number Length
int
str
len
one-line (slice, negative index, unpack)
Easy Unpack
lambda
one-line (max with key arg)
The Most Frequent
max
lambda
count
First
Split Pairs
format
list-comp
range
comprehension
len
First
Remove All Before
index
typing.Iterable
Iterable
typing
inline-if
First
End Zeros
rstrip
int
str
len
First
Sum Numbers
all
isdigit
sum
if-comprehension
and
First
First Word (simplified)
split
str
First
Is Even
bool
not
int
First
Correct Sentence
upper
inline-if
str
First
Between Markers (simplified)
index
str
First
Multiply (Intro)
Home
One line sum any
Pawn Brotherhood
chr
any
ord
sum
join
13
one line (regexp)
Three Words
r-string
bool
lambda
Lazy
Morse Decoder
capitalize
get
map
replace
join
one line with: sorted, key, count, index
Sort Array by Element Frequency
index
lambda
count
sorted
straightforward
Sun Angle
typing.Union
Union
float
format
map
1
find + slice
Between Markers
find
None
inline-if
in
str
straightforward
Split List
list
len
Find
Second Index
find
None
inline-if
str
Not smart
Date and Time Converter
calendar.month_name
month_name
calendar
format
map
one line
Days Between
abs
lambda
re
First Word
findall
re.findall
r-string
re
str
straightforward
Backward Each Word
join
split
comprehension
str
First
Non-unique Elements
collections.Counter
Counter
collections
if-comprehension
list-comp
one line (sorted + key)
Bigger Price
lambda
sorted
True
one line
Right to Left
replace
lambda
join
comprehension
one line
Even the Last
lambda
inline-if
sum
Electronic Station
Linear
Words Order
setdefault
get
enumerate
bool
False
9
Less crazy math (second)
Brackets
ord
not
in
False
else
2
Functional way
Find Sequence
operator.or_
or_
chain
itertools.chain
operator
Functional way Second
Find Sequence
chain
itertools.chain
re.search
search
r-string
Crazy math (crazy complexity O(2^n))
Brackets
values
get
pop
not
or
1
First
Sort by Extension
rfind
List
typing.List
typing
sorted
First
Acceptable Password V
map
bool
set
lower
or
First
Acceptable Password VI
map
bool
set
lower
or
First
Acceptable Password IV
map
bool
set
or
and
First
Surjection Strings
zip
in
False
and
True
First
Acceptable Password III
map
bool
set
and
range
First
Acceptable Password II
map
bool
set
and
range
1
lambda
Boolean Algebra
get
lambda
First
Ascending List
any
typing.Iterable
Iterable
bool
not
oneline
Verify Anagrams
replace
lower
lambda
sorted
list-comp
straightforward
All Upper II
ascii_uppercase
string.ascii_uppercase
string
isupper
bool
one line
Digits Multiplication
replace
lambda
int
str
Scientific Expedition
one line (lambda)(lambda)
Common Words
set
lower
lambda
sorted
join
Dumb
Convert and Aggregate
collections.defaultdict
defaultdict
dict-comp
dict
items
RegExp (just for fun)
Striped Words
IGNORECASE
re.IGNORECASE
findall
re.findall
r-string
Dumb
YAML. More Types
f-string
strip
continue
None
replace
std lib
Remove Accents
category
unicodedata.category
normalize
unicodedata.normalize
unicodedata
one line
Secret Message
isupper
lambda
join
if-comprehension
comprehension
First
YAML. Simple Dict
continue
isdigit
split
int
for
one line (dumb)
Absolute Sorting
abs
lambda
sorted
Dumb
The Hidden Word
itertools.zip_longest
zip_longest
itertools
find
enumerate
one line
Pangram
all
lower
lambda
count
comprehension
First
I Love Python!
replace
first
Letter Queue
collections.deque
deque
collections
join
in
First
Goes Right After
find
bool
False
and
str
First
Time Converter (24h to 12h)
f-string
map
split
int
str
fast
The Most Wanted Letter
ascii_lowercase
string.ascii_lowercase
collections.Counter
Counter
string
O'Reilly
Itertools.chain zip and count
Xs and Os Referee
chain
itertools.chain
itertools
zip
count
4
4
one line
Count Inversions
enumerate
lambda
sum
and
list
First
The Flat Dictionary
isinstance
dict
items
pop
or
Strings and eval
Flatten a List
repr
eval
replace
One line brute force
Loading Cargo
combinations
itertools.combinations
itertools
map
min
First
Median
inline-if
sorted
len
one line
Index Power
pow
get
dict
enumerate
lambda
Incinerator
square programming 8x60
Building Base
type
get
dict
zip
map
11
3
It's getting messy
The Healers
class
collections.deque
deque
property
super
Uber mess
The Warlords
class
Optional
typing.Optional
collections.deque
deque
Just dumb
The Weapons
class
Optional
typing.Optional
collections.deque
deque
Dumb
Straight Fight
class
Optional
typing.Optional
collections.deque
deque
First
Geometry Figures
class
math.pi
pi
math.sqrt
sqrt
Mutable list argument
Capital City
class
is
None
if
Lots of code
Army Units
class
f-string
str
Dumb one
The Lancers
class
collections.deque
deque
property
super
dumb
Voice TV Control
class
isinstance
any
max
inline-if
First
Every Person is Unique
class
datetime.strptime
strptime
f-string
datetime.datetime
First
3 Chefs
class
f-string
ordinary solution
The Vampires
class
collections.deque
deque
property
super
dumb frozenset.union and try finally
Friends
finally
class
discard
frozenset
union
Straightforward
Army Battles
class
collections.deque
deque
property
super
Dummy
The Warriors
class
property
super
decorator
not
Mine
One line with slice
Moore Neighbourhood
max
sum
comprehension
1
Easy solution (fixed version)
The Greatest Common Divisor
functools.reduce
reduce
functools
lambda
or
std lib
The Greatest Common Divisor
fractions.gcd
gcd
fractions
functools.reduce
reduce
one line (max + key)
Best Stock
items
max
lambda
oneline
Fizz Buzz
all
not
lambda
inline-if
join
one line
Binary Count
bin
lambda
count
Ice Base
dp O(price * len(denominations))
Making Change
None
inline-if
and
range
for
1
stupid recursion
Making Change
functools.lru_cache
lru_cache
decorator
functools
None
13
LoL(N) complexity
Largest Rectangle in a Histogram
pop
max
or
while
and
dumb solution
Feed Pigeons
min
while
1
breadth first search
How to Find Friends
collections.deque
deque
collections.defaultdict
defaultdict
extend
First
Roman Numerals
range
int
len
for
itertools.groupby
Long Repeat
groupby
itertools.groupby
itertools
max
comprehension
one line
The Most Numbers
min
max
lambda
inline-if
one line
Monkey Typing
lower
lambda
sum
in
comprehension
Alice In Wonderland
Bit manipulation with comments
IP Network: Route Summarization
reversed
enumerate
min
max
lambda
7
2
Bit manipulation without comments
IP Network: Route Summarization
reversed
enumerate
min
max
lambda
11
First
Transposed Matrix
zip
map
list
GitHub
Without datetime and calendar
The Most Frequent Weekdays
not
or
and
int
3
2
One line
Solution for Anything
object
type
dict
lambda
True
8
1
First
Merge Intervals
max
not
append
else
for
one line (permutations)
The End of Other
endswith
any
lambda
comprehension
dumb breath-first-search
Open Labyrinth
collections.deque
deque
collections
not
while
Dropbox
First
The Longest Palindromic
enumerate
min
max
join
while
1
4
Easy and fast
Numbers Factory
map
not
inline-if
sorted
join
6
matrix equation
Three Points Circle
findall
re.findall
float
format
round
2
ycomb
The Best Number Ever
lambda
inline-if
First
Speech Module
get
and
else
int
str
PyCon TW
Second dp (len is 95)
Golden Pyramid
functools.reduce
reduce
functools
enumerate
max
6
1
one line (dynamic prog)
Golden Pyramid
functools.reduce
reduce
functools
enumerate
max
7
Second
House Password
functools.partial
partial
functools
re.search
search
Storage
lambda, str(tuple) and concat
Exec Quine
lambda
str
1
1
Dumb and easy
Moria Doors
reversed
findall
re.findall
re
min
16
1
Functional way
Skew-symmetric Matrix
zip
map
list-comp
list
comprehension
codegolf 91
Weak Point
zip
map
enumerate
min
lambda
Maya
Dummy replace
Unruly
any
tuple
zip
replace
count
2
Without dfs
Signpost
cached_property
functools.cached_property
id
class
union
3
1
HubSpot
one line (lambda inception)
Number Base
chr
max
lambda
inline-if
int
Math magic
The Hamming Distance
1
eval
Restricted Sum
eval
map
join
str
Blizzard
Functional way
Spaceship Landing Strip
getitem
operator.getitem
slice
functools.partial
partial
4
3
oneliner
Unlucky Days
lambda
sum
range
comprehension
and not not + triple quotes
Palindromic Palindrome
lambda
simple
Stair Steps
max
append
range
len
for
Second: std (proper way)
Min and Max
gt
operator.gt
lt
operator.lt
operator
1
std
Min and Max
gt
operator.gt
lt
operator.lt
iter
2
Rock
Dummy bfs
River Crossing
NamedTuple
typing.NamedTuple
class
heappush
heapq.heappush
4 lines with comments
CheckSum
re.sub
sub
r-string
ord
map
2
Shelter
Lambda just for fun
The Nearest Square Number
min
abs
lambda
list-comp
comprehension
14
bits
Seven Segment
ord
enumerate
not
lambda
sum
Fast O(log(n)) and clear magic (only 3 integer vars)
Ghosts Age
range
for
if
Hermit
Bron-Kerbosch (backtracking)
Break Rings
isdisjoint
union
yield
functools.reduce
reduce
6
Watchtower
Graham scan (easy way)
Convex Hull
cmp_to_key
functools.cmp_to_key
collections.namedtuple
namedtuple
collections.deque
1
Easy
Compare Functions
Exception
is
None
except
try
Not On Map
lol
Length of the String
len