27
kudinov.feodor
6 26 43
4076/ 4195
Федор Кудинов
Last seen 12 days ago
Member for 4 years, 9 months, 22 days
Difficulty Normal
Missions (228) / Solutions (237)
Best solutions / Newest solutions
Initiation
List comprehension
Easy Unpack
tuple
comprehension
1
rstrip
End Zeros
rstrip
int
str
len
int(max(str(number)))
Max Digit
max
int
str
1
First
Correct Sentence
rstrip
capitalize
str
Max by count
The Most Frequent
max
count
list
str
First
First Word (simplified)
split
str
sum of is digit elements
Sum Numbers
isdigit
sum
if-comprehension
split
comprehension
re.findall and format
Split Pairs
findall
re.findall
format
re
list-comp
First
Number Length
int
str
len
pop append
Replace First
pop
typing.Iterable
None
Iterable
typing
Sorted
Nearest Value
abs
set
lambda
sorted
int
Lstrip
Beginning Zeros
lstrip
int
str
len
1
Slice by index of border
Remove All Before
index
typing.Iterable
Iterable
typing
inline-if
with regex
Count Digits
findall
re.findall
r-string
re
int
1
First
Acceptable Password I
bool
str
len
text == text.upper()
All Upper I
upper
bool
str
1
First
Backward String
str
1
Slice with positions by index
Between Markers (simplified)
index
str
First
Is Even
bool
int
First
All the Same
Any
typing.Any
all
List
typing.List
Home
First
Changing direction
is
None
print
elif
False
18
Compare set and range
Missing Number
difference
min
set
max
print
group by
Changing direction
groupby
itertools.groupby
itertools
zip
max
Sort by index, sort by count
Sort Array by Element Frequency
index
count
sorted
True
15 deg per Hour
Sun Angle
split
else
int
if
Replacements only
Morse Decoder
capitalize
replace
sorted
True
len
First
Missing Number
min
print
sorted
range
list
1
double for loop
Morse Decoder
capitalize
strip
join
append
split
Simple regex
Three Words
re.search
search
re
bool
str
Chain from iterable
Duplicate Zeros
from_iterable
itertools.from_iterable
collections.abc.Iterable
chain
itertools.chain
Regular expression
First Word
re.search
search
re
str
One liner
Backward Each Word
join
split
comprehension
str
First
Right to Left
replace
join
1
Oneliner
Even the Last
inline-if
sum
Ceil of len and 2 slices
Split List
math.ceil
ceil
math
list
len
Intersection of 2 sets
Pawn Brotherhood
extend
map
index
set
list
1
Slice by find start and end or None
Between Markers
find
None
inline-if
in
str
1
First
Bigger Price
lambda
sorted
True
list
int
Counter and dict comprehension
Popular Words
collections.Counter
Counter
dict-comp
get
dict
2
Find, find if count >= 2
Second Index
find
None
count
inline-if
int
1
regex
First Word
re.search
search
re
str
process list of bools
Three Words
all
any
zip
isalpha
bool
list comprehension
Three Words
all
any
zip
map
isalpha
1
Electronic Station
create mapping of values
Surjection Strings
elif
False
True
range
len
First
All Upper II
isupper
bool
inline-if
False
str
Sort set
Words Order
any
index
bool
set
lambda
2
regex with escape
Unix Match. Part 2
escape
re.escape
match
re.match
re
Intersection of ray with lines of polygon
Inside Block
random.random
difference
random
any
add
First
Acceptable Password V
isnumeric
all
any
isalpha
bool
1
Second: Compare sorted
Verify Anagrams
replace
lower
lambda
sorted
1
First
Acceptable Password VI
isnumeric
all
any
isalpha
bool
1
First
Acceptable Password IV
isnumeric
all
any
isalpha
bool
Compare counters
Verify Anagrams
collections.Counter
Counter
collections
replace
lower
3
First
Ascending List
all
typing.Iterable
Iterable
bool
set
Compare tangensies
Similar Triangles
Tuple
typing.Tuple
List
typing.List
None
Tuple of magic methods
Boolean Algebra
index
1
sort key with rfind last dot
Sort by Extension
rfind
List
typing.List
not
typing
convert to regex match
Unix Match. Part 1
escape
re.escape
match
re.match
re
First
Acceptable Password III
isnumeric
all
any
isalpha
bool
any is numeric
Acceptable Password II
isnumeric
all
any
bool
comprehension
While loop with divmod
Digits Multiplication
divmod
or
while
int
1
split and replace recursively
Brackets
rsplit
re.sub
sub
all
items
2
Scientific Expedition
For loop
Letter Queue
List
typing.List
typing
inline-if
split
15
use iterator to Iterate once
Beat The Previous
iter
next
print
append
list
Second - generator
Beat The Previous
iter
next
yield
print
list
Format with 2 conditional expressions
Time Converter (24h to 12h)
format
or
inline-if
int
3
Replace and slice
Bird Language
replace
for
First
Convert and Aggregate
dict-comp
get
dict
items
tuple
split by \W and simple regex
Striped Words
re.split
f-string
re.search
search
upper
1
2 for loops
The Hidden Word
itertools.zip_longest
zip_longest
itertools
find
map
is upper
Secret Message
isupper
join
if-comprehension
comprehension
str
unicodedata remove combinings
Remove Accents
combining
unicodedata.combining
normalize
unicodedata.normalize
unicodedata
1
re.split re.fullmatch
Striped Words
fullmatch
re.fullmatch
IGNORECASE
re.IGNORECASE
re.split
1
Map count
Follow Instructions
Tuple
typing.Tuple
map
typing
count
First
Absolute Sorting
operator.abs
operator
tuple
abs
sorted
First
YAML. Simple Dict
isnumeric
strip
dict-comp
dict
items
split map join
Conversion into CamelCase
title
map
join
split
str
difference between sets
Pangram
ascii_lowercase
string.ascii_lowercase
string
set
not
compare sets
Common Words
set
sorted
join
split
comprehension
First
The Most Wanted Letter
filter
collections.Counter
Counter
items
collections
O'Reilly
zip_longest, min max
Lightbulb End Watching
itertools.zip_longest
zip_longest
Optional
typing.Optional
datetime.datetime
16
simple while loop
Flatten a List (generator version)
yield
isinstance
pop
while
else
Not most effective but clear
Flatten a List (iterator version)
yield
isinstance
pop
while
list
zip 2 slices
Lightbulb Intro
datetime.datetime
datetime
List
typing.List
zip
First
Integer Palindrome
divmod
bool
print
while
False
sorted insort_right
The Final Stone
bisect.insort_right
insort_right
bisect
pop
or
Check date range during iteration zip of slices
Lightbulb Start Watching
Optional
typing.Optional
datetime.datetime
datetime
List
Recursive simple
The Flat Dictionary
isinstance
dict
items
pop
not
First
Sum of Digits
map
sum
print
while
int
regex
Time Converter (12h to 24h)
fullmatch
re.fullmatch
f-string
re
inline-if
1
First
Majority
bool
sum
print
False
True
items[-1:] + items[:-1]
Replace Last
typing.Iterable
Iterable
typing
list
1
First
Median of Three
typing.Iterable
Iterable
typing
print
sorted
First
Remove All After
collections.abc.Iterable
collections
index
Iterable
inline-if
2
Sorted with lambda
Frequency Sorting
lambda
count
sorted
Recursive 4 liner
How Deep
isinstance
any
tuple
max
if-comprehension
One liner
Chunk
typing.Iterable
Iterable
typing
list-comp
range
Iterate once
Compress List
collections.abc.Iterable
collections
continue
pop
Iterable
Simple but not effective: iterate through permutations
Loading Cargo
itertools.permutations
permutations
itertools
min
abs
map each letter to goes before letters
Determine the Order
difference
issubset
chain
itertools.chain
collections.defaultdict
1
Compare sets of positions
Xs and Os Referee
set-comp
any
List
typing.List
enumerate
1
Average of a slice
Median
math.ceil
ceil
float
List
typing.List
One liner
Index Power
inline-if
list
int
1
chain from generator expression
Flatten a List
from_iterable
itertools.from_iterable
chain
itertools.chain
isinstance
First
Reverse Every Ascending
reversed
continue
print
while
list
filter, sort, insert
Sort Except Zero
insert
filter
typing.Iterable
Iterable
typing
Recursive solution
Flatten a List
isinstance
extend
inline-if
append
list
1
Compare sets
Xs and Os Referee
set-comp
any
List
typing.List
enumerate
1
One liner - sum of list of lists
Count Inversions
from_iterable
itertools.from_iterable
chain
itertools.chain
itertools
Incinerator
OOP: Friend, Party, Invite classes
Party Invitations
class
f-string
remove
None
append
First
Capital City
class
super
is
None
if
Abstract menu for abstract cooks
3 Chefs
class
OrderedDict
collections.OrderedDict
f-string
items
2
Extend fight func to receive lists of Wariors
The Lancers
class
staticmethod
property
decorator
isinstance
Cycle generator
Multicolored Lamp
cycle
itertools.cycle
class
next
itertools
modification of fight function
The Defenders
class
staticmethod
raise
math.ceil
ceil
RemoteControl with getattr, re for time convertion
Microwave Ovens
Ellipsis
class
getattr
staticmethod
divmod
First
Hacker Language
class
isalnum
startswith
chr
bin
Second: OOP - chain of invocations
Hacker Language
classmethod
class
match
re.match
decorator
Abstract Unit
Army Units
Ellipsis
class
capitalize
type
f-string
User, Message, Chat
Dialogues
Ellipsis
class
f-string
None
lower
deep copy to save text version
Text Editor
vars
class
copy.deepcopy
deepcopy
update
Self descriptive and Object oriented
The Vampires
class
staticmethod
property
decorator
None
5
First
Every Person is Unique
class
datetime.strptime
strptime
f-string
datetime.datetime
Damage based on min attacks to win
The Warriors
class
math.ceil
ceil
property
decorator
1
Clear solution
Army Battles
class
staticmethod
math.ceil
ceil
property
Using properties
Building Base
class
property
decorator
f-string
abs
Mine
Convert to coords and back
Chess Knight
from_iterable
itertools.from_iterable
chain
itertools.chain
itertools.product
6
1
Recursive check next steps
Fast Train
from_iterable
itertools.from_iterable
chain
itertools.chain
all
10
dict of functions
Aggregate by Operation
operator.truediv
truediv
operator.sub
operator.add
mul
11
1
Iterate, pop and join the rest
Fizz Buzz
chain
itertools.chain
itertools
zip
pop
1
Depth firs analisys
What Is Wrong With This Family?
iter
collections.defaultdict
defaultdict
next
collections
Find last space and slice
Cut Sentence
rfind
inline-if
len
if
1
simple oneliner
Achilles and the Tortoise
1
First
The Einstein Problem-Lite
Exception
raise
get
format
remove
Second
Aggregate by Operation
operator.sub
operator.add
mul
operator.mul
collections.defaultdict
iterate through itertools.product
Moore Neighbourhood
itertools.product
product
itertools
sum
if-comprehension
Third: with small functions maps and named tuple
Chess Knight
typing.Set
Set
collections.namedtuple
namedtuple
chain
with primes generator
The Greatest Common Divisor
mul
operator.mul
setdefault
operator
next
get by index + delta from list
Caesar Cipher (encryptor)
index
inline-if
join
in
comprehension
1
bin(number).count("1")
Binary Count
bin
count
int
1
Max from items()
Best Stock
items
max
lambda
1
using str.translate
Caesar Cipher (encryptor)
translate
str
1
Ice Base
Slice of splited string
Find Quotes
split
19
1
intersection of sets of ranges
Interesting, intersecting
tuple
bool
set
print
False
Infinit cycle with itertools.count
Feed Pigeons
itertools.count
itertools
count
inline-if
else
while cycle with sets (6 lines)
How to Find Friends
from_iterable
itertools.from_iterable
chain
itertools.chain
itertools
First
Clock Angle
min
abs
split
int
Max length from groupby
Long Repeat
groupby
itertools.groupby
itertools
max
inline-if
2
oneliner
Morse Encoder
lower
print
join
list-comp
split
Max min
The Most Numbers
min
max
inline-if
1
for l, n in zip(letters, numbers)
Roman Numerals
zip
for
1
sum
Monkey Typing
set
lower
sum
in
comprehension
2
Alice In Wonderland
Dijkstra
The Shortest Knight's Path
bisect.insort_left
insort_left
bisect
add
map
10
Simple
Zigzag Array
List
typing.List
typing
append
range
18
2
First
YAML. List and Comments
startswith
isnumeric
match
re.match
findall
Clever slice
Middle Characters
len
1
While loop
Flood Area
enumerate
typing.Iterable
break
Iterable
typing
Depth first graph analisys
Digits Doublets
combinations
itertools.combinations
is
itertools
zip
1
Chain zip_longest
Swap Nodes
from_iterable
itertools.from_iterable
itertools.zip_longest
zip_longest
chain
(11 - weekday) % 7
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
First
Multiplication Table
and_
operator.and_
operator.xor
xor
operator.or_
GitHub
Prioritised combinations of nodes groups
Power Plants
Dict
typing.Dict
typing.Set
Set
from_iterable
same as iterator version
Merge Intervals (generator version)
StopIteration
iter
next
yield
continue
in range comparrison
Merge Intervals (iterator version)
StopIteration
next
yield
continue
except
For loop with if else
Create Intervals (generator version)
yield
not
sorted
append
else
Second: chain from iterable
Expand Intervals
from_iterable
itertools.from_iterable
chain
itertools.chain
itertools
1
shift left and gcd
Evenly Spaced Trees
math.gcd
gcd
difference
functools.reduce
reduce
Dijkstra's BFS
The Cheapest Flight
heappush
heapq.heappush
heappop
heapq.heappop
heapq
First
The Most Frequent Weekdays
datetime.weekday
weekday
date
datetime.date
datetime
Chain from list of ranges
Expand Intervals
from_iterable
itertools.from_iterable
chain
itertools.chain
itertools
Dropbox
First
The Longest Word
max
print
split
str
len
11
Recursion with simple cache
Sum of Integers
print
in
int
if
12
Second: added textwrap.wrap
Text Formatting
textwrap.wrap
wrap
textwrap
rstrip
get
20
big and ugly
Text Formatting
rstrip
get
format
enumerate
pop
First
Sort Sorted Groups
chain
itertools.chain
is
itertools
None
brute force: wrap - zip - chain - join
Scytale Encryption
textwrap.wrap
wrap
textwrap
Optional
typing.Optional
Find palindrome for 196
The Best Number Ever
RecursionError
except
try
int
str
1
getattr hashlib
Simple Hashlib
getattr
hashlib
divmod and if else blocks
Speech Module
chain
itertools.chain
divmod
f-string
itertools
2
PyCon TW
recursive function in while loop
Calculate Islands
itertools.product
product
itertools
remove
List
while loop with 1 generator expression
Double Substring
max
count
while
if-comprehension
range
Storage
combinations of all lines
The Rows of Cakes
combinations
itertools.combinations
any
itertools
pop
2
Recursive: best path in graph
Digging a Canal
List
typing.List
continue
min
not
Second: while loop
Digging a Canal
insert
List
typing.List
zip
continue
Sort rows by sum
Weak Point
zip
index
lambda
sum
sorted
max with key
Moria Doors
union
intersection
re.sub
sub
map
Generator + itertools combinations
Saw the Stick
itertools.count
combinations
itertools.combinations
yield
itertools
double list comprehension with zip(*matrix)
Skew-symmetric Matrix
zip
list-comp
comprehension
HubSpot
Reinvent convert to int and multiply
Univocalic davasaan
lambda
and
str
GraphProcessor class with recursive function
City's Happiness
copy.copy
class
from_iterable
itertools.from_iterable
chain
First
Non Empty Lines
replace
bool
sum
split
comprehension
Recursive reduce
Restricted Sum
len
if
3
Blizzard
union sets
Rectangles Union
Tuple
typing.Tuple
set-comp
List
typing.List
11
Product of product of product...
Spaceship Landing Strip
itertools.product
product
all
itertools
continue
17
1
Queue of Danger Cells
Safe Coasts
any
pop
replace
not
lambda
Single loop
Stair Steps
max
append
range
len
for
1
Multiline comments
Palindromic Palindrome
lambda
First
Permutation Index
mul
operator.mul
operator
Tuple
typing.Tuple
Second
Min and Max
functools.partial
partial
functools
None
sorted
with partial and operator functions
Min and Max
gt
operator.gt
lt
operator.lt
functools.partial
1
Rock
While loop, wise slicing
Greedy Number
index
None
max
inline-if
print
7
One liner using reduce
Sort by Removing
functools.reduce
reduce
functools
lambda
inline-if
18
While loop
Home Coming
collections.Counter
Counter
values
collections
List
O(n) for logs, O(n2) for sessions
Web Log Sessions
from_iterable
itertools.from_iterable
chain
itertools.chain
datetime.strptime
2 slices with step
CheckSum
ascii_letters
string.ascii_letters
digits
string.digits
isnumeric
2 lambdas
Parity Bit Generator
chr
bin
lambda
count
join
Shelter
OOP, base cannon, product of successful directions
Fortress Cannons
cycle
itertools.cycle
class
from_iterable
itertools.from_iterable
17
for loop with while loop inside
Pattern Recognition
slice
break
while
True
list-comp
18
Generator retrieves cells around per radius
Landing Site
typing.Set
Set
Ellipsis
itertools.product
product
Second
Landing Site
typing.Set
Set
itertools.product
product
add
process dicts with letters
Halloween Monsters
dict-comp
all
get
items
pop
math: sqrt, floor, ceil
The Nearest Square Number
math.floor
floor
math.ceil
ceil
math.sqrt
queue try unpack to list
Completely Empty
AttributeError
TypeError
extend
pop
except
No recursion, simple while loop and try except
Completely Empty
TypeError
extend
pop
except
try
possible_numbers separate function
Seven Segment
set-comp
map
isupper
enumerate
set
while loop
Ghosts Age
while
else
if
Hermit
oneliner
Excel Column Number
string.index
ascii_uppercase
string.ascii_uppercase
pow
string
8
map by normalise function
Unique Email Addresses
f-string
map
replace
set
lower
Based on arithmetic progression
Count Consecutive Summers
math.log2
log2
itertools.count
itertools
math
Watchtower
Nothing special
Compare Functions
Exception
is
None
except
try
Escher
Find coords to visit, and BFS each item
The Buttons
splitlines
set-comp
extend
add
enumerate
Refined First: heavy rely on sets
The Buttons
splitlines
set-comp
enumerate
pop
sorted
First
Card Game
remove
in
elif
False
True
DFS - while loop
The Stones
intersection
update
set-comp
add
remove
Second with Explanation
The Stones
is
any
inline-if
if-comprehension
False
sort by price/weight
Treasures
f-string
index
min
lambda
sorted
First
Keys and Locks
splitlines
zip
if-comprehension
in
list-comp
eval
Safe Code
startswith
eval
any
continue
replace
Sort all translated and get index of expected translated
The Secret Room
translate
divmod
index
None
inline-if
analisys of combinations
Wild Dogs
dist
math.dist
combinations
itertools.combinations
itertools
min zip wall where count #
The Stone Wall
splitlines
zip
min
lambda
count
strip joined cells
Ground for the House
splitlines
strip
zip
inline-if
join
2 steps approach
Compass, Map and Spyglass
enumerate
abs
max
sum
in
2 sorted set comprehensions
The Ship Teams
set-comp
sorted
if-comprehension
comprehension
Not On Map
defaultdict
Aggregate and Count
collections.defaultdict
defaultdict
dict
collections
print
First
Most Wanted Letter
lower
elif
append
str
for