43
kdim
17 43 60 Leader of the month
13161/ 14193
Dmitry Khromenko
Last seen 34 minutes ago
Member for 3 years, 4 months, 17 days
Difficulty Normal
I study Python myself and help my son and daughter learn programming.

Missions (443) / Solutions (439)
Best solutions / Newest solutions
Initiation
sum + for
Count Digits
isnumeric
sum
comprehension
int
str
4
5
len - len
Beginning Zeros
lstrip
int
str
len
4
3
split
Between Markers (simplified)
split
str
4
3
lambda
Nearest Value
filter
min
abs
set
lambda
6
6
classic
Acceptable Password I
bool
str
len
6
4
lambda
Multiply (Intro)
lambda
8
5
max & set
The Most Frequent
set
max
count
list
str
8
4
classic
Is Even
bool
int
8
2
yet another simple solution
Split Pairs
findall
re.findall
re
10
2
recursion
End Zeros
not
elif
else
int
if
11
6
len + set
All the Same
Any
typing.Any
List
typing.List
bool
11
2
sum map lambda
Sum Numbers
map
isdigit
lambda
inline-if
sum
11
2
use slices
Replace First
typing.Iterable
Iterable
typing
list
12
2
classic
First Word (simplified)
split
str
16
3
findall regexp
Split Pairs
findall
re.findall
re
18
5
First
Easy Unpack
tuple
19
2
len str
Number Length
int
str
len
20
1
rstrip
Correct Sentence
rstrip
upper
str
3
simple
Max Digit
max
int
str
1
classic
Backward String
str
1
while loop
Remove All Before
typing.Iterable
Iterable
typing
while
list
2
use upper()
All Upper I
upper
bool
str
1
Home
math
Missing Number
min
max
sum
print
list
1
9
sum, one line
Duplicate Zeros
sum
list-comp
list
comprehension
2
1
diff sets
Missing Number
iter
next
min
set
max
4
1
slices
Split List
list
len
5
1
clear maths
Sun Angle
or
inline-if
int
6
6
one line, for in for
Duplicate Zeros
list-comp
range
list
comprehension
6
str replace one line
Duplicate Zeros
map
replace
join
split
list
6
1
classic
Morse Decoder
capitalize
strip
get
split
for
7
1
heh
Date and Time Converter
datetime.strptime
strptime
re.sub
sub
datetime.datetime
8
zip + count
Changing direction
zip
count
print
join
if-comprehension
8
2
sum lambda, one line
Duplicate Zeros
map
lambda
inline-if
sum
list
8
1
join + split
Backward Each Word
re.split
re
join
list-comp
split
12
4
find with sum
Missing Number
min
max
print
list
int
12
1
re.search
First Word
re.search
search
r-string
re
str
18
1
split + count
Popular Words
dict-comp
dict
lower
count
list-comp
two key sorted
Sort Array by Element Frequency
index
lambda
count
sorted
True
2
something like this
Between Markers
find
inline-if
split
str
1
generator
Duplicate Zeros
yield
not
print
list
for
regex
Date and Time Converter
datetime.strptime
strptime
re.sub
sub
datetime.datetime
1
something like this
Second Index
find
None
inline-if
int
str
2
using def
Pawn Brotherhood
chr
ord
bool
set
sum
datetime
Days Between
datetime.datetime
datetime
abs
2
simple sorted
Bigger Price
get
lambda
sorted
True
list
1
join replace
Right to Left
tuple
replace
join
str
4
re.search
Three Words
IGNORECASE
re.IGNORECASE
re.search
search
r-string
2
one string
Even the Last
inline-if
sum
list
int
3
Second Filter
Non-unique Elements
filter
lambda
count
list
1
list filter
Non-unique Elements
filter
lambda
count
list
1
Electronic Station
re and maketrans
Unix Match. Part 1
translate
re.search
search
re
None
1
10
intersection method
Inside Block
Ellipsis
Tuple
typing.Tuple
bool
typing
2
one long string =)
Acceptable Password V
isalpha
isdigit
bool
not
lower
2
1
one string
Acceptable Password III
any
isalpha
isdigit
bool
and
4
2
classic
Similar Triangles
Tuple
typing.Tuple
List
typing.List
zip
5
3
5 strings
Acceptable Password VI
isalpha
isdigit
bool
set
not
5
3
recursively paint over
Can You Pass?
None
list-comp
list
comprehension
len
5
2
one string
Acceptable Password IV
isalpha
isdigit
bool
not
or
5
1
try except
Unix Match. Part 2
error
re.error
re.search
search
items
8
2
split into groups and recursion check
Mathematically Lucky Tickets
rjust
f-string
all
map
lambda
8
5
simple check
Acceptable Password II
any
isdigit
bool
and
comprehension
9
6 lines solution
Remove Brackets
re.sub
sub
f-string
re.search
search
9
3
use dict
Surjection Strings
get
dict
zip
bool
list-comp
11
3
split + two key sorted
Sort by Extension
List
typing.List
typing
lambda
inline-if
14
1
simple
Words Order
bool
set
sorted
if-comprehension
in
16
4
use any
Ascending List
any
typing.Iterable
Iterable
bool
not
16
2
with suppress
Unix Match. Part 2
contextlib.suppress
suppress
contextlib
with
Exception
1
use matrix diagonal and horizontal flip
Find Sequence
copy.deepcopy
deepcopy
copy
any
List
2
dictionary + lambda as a replacement for switch
Boolean Algebra
lambda
inline-if
int
2
use queue
Brackets
values
dict
zip
pop
in
1
three ways to solve - reduce, eval, recursion
Digits Multiplication
eval
functools.reduce
reduce
functools
map
didn't think long
All Upper II
strip
upper
isdigit
bool
not
1
replace + lower + sorted
Verify Anagrams
replace
lower
sorted
1
Scientific Expedition
clear and readable
Convert and Aggregate
setdefault
dict-comp
dict
items
tuple
1
6
zip and split
Nonogram Encode
strip
zip
max
print
join
1
1
simple
Goes Right After
find
bool
str
4
3
simple join
Caps Lock
upper
enumerate
inline-if
join
list-comp
5
Second
Sum by Type
Tuple
typing.Tuple
isinstance
zip
typing
5
1
max str
Latest ISO datetime
max
print
str
5
2
without re, 6 lines
Combining Celebrity Names
enumerate
if-comprehension
list-comp
comprehension
5
1
First
YAML. More Types
re.sub
sub
strip
r-string
dict
6
split + dict
YAML. Simple Dict
dict
isdigit
inline-if
if-comprehension
list-comp
6
1
dict + lambda
Letter Queue
List
typing.List
typing
lambda
join
7
2
masochism?
Time Converter (24h to 12h)
datetime.strptime
strptime
datetime.datetime
datetime
replace
7
1
First
Convert To Title Case
capitalize
print
join
split
comprehension
7
First
Longest Substring of Unique Characters
find
max
print
else
int
7
recursion
Count Substring Occurrences
find
index
lower
inline-if
print
8
BFS
Water Sort Game
itertools.permutations
permutations
yield
all
itertools
8
dict + lambda (python way =)
Follow Instructions
lambda
for
9
First
Count Vowels
lower
count
sum
print
comprehension
9
First
Fuzzy String Matching
zip
abs
bool
sum
print
12
7-liner, simple
Cipher Map
List
typing.List
zip
typing
join
13
1
simple
Conversion into CamelCase
title
join
split
comprehension
13
1
join + zip + sum
Sum by Type
Tuple
typing.Tuple
isinstance
zip
typing
15
2
First
Replace All Occurrences
replace
print
str
17
1
simple
Morse Clock
zfill
format
map
replace
sum
19
1
hard way =)
The Hidden Word
ljust
zip
enumerate
index
replace
19
5
it's a python the way? ;)
Time Converter (24h to 12h)
datetime.strptime
strptime
datetime.datetime
datetime
lstrip
20
1
dict + lambda
The Most Wanted Letter
dict-comp
items
lower
lambda
count
2
simple set
Pangram
set
lower
1
unicodedata
Remove Accents
category
unicodedata.category
normalize
unicodedata.normalize
unicodedata
1
sorted split set
Common Words
set
sorted
join
split
str
2
heh, not so graceless
Conversion from CamelCase
isupper
lower
join
comprehension
1
First
Beat The Previous
map
pop
not
or
print
lambda + set
Striped Words
translate
set
lower
lambda
or
1
simple
Call to Home
List
typing.List
set
typing
lambda
1
recursion with lambda (python way =)
Bird Language
lambda
inline-if
join
list-comp
split
1
First
I Love Python!
1
simple join
Secret Message
join
if-comprehension
comprehension
str
1
sorted with key
Absolute Sorting
tuple
abs
lambda
sorted
list
1
O'Reilly
sum and recursion, one line
Sum of Digits
map
inline-if
sum
print
int
1
5
rectangles + combinations
Grid Painting
combinations
itertools.combinations
chr
itertools
set
1
1
items count
Majority
bool
count
False
True
list
2
4
array of lamps and array of event
Multiple Lightbulbs
typing.Union
Union
Optional
typing.Optional
Tuple
2
1
recursion
Knapsack Problem
functools.lru_cache
lru_cache
decorator
functools
tuple
2
1
cut, merge and intersection (combination)
Lightbulb More
datetime.min
datetime.max
typing.Union
Union
Optional
2
total_seconds()
Lightbulb Intro
datetime.datetime
datetime
List
typing.List
typing
3
strptime.strftime
Time Converter (12h to 24h)
datetime.strptime
strptime
datetime.datetime
datetime
replace
4
1
simple
Replace Last
list
4
1
try except
Remove All After
index
typing.Iterable
Iterable
except
try
4
1
build bridges recursively
Archipelago
Ellipsis
get
any
items
tuple
4
one string solution with itertools combinations
Loading Cargo
combinations
itertools.combinations
itertools
min
abs
5
3
First
Lightbulb Operating
typing.Union
Union
Optional
typing.Optional
datetime.timedelta
5
use heapq
The Final Stone
heapify
heapq.heapify
heappush
heapq.heappush
heappop
6
3
divmod and recursion
Sum of Digits
divmod
inline-if
print
while
int
7
1
add array of light
Lightbulb End Watching
Optional
typing.Optional
filter
datetime.datetime
dict
7
while and sum
Sum of Digits
sum
print
while
comprehension
int
8
2
filter > start
Lightbulb Start Watching
Optional
typing.Optional
filter
datetime.datetime
datetime
9
1
two cycles
Flip of Time
combinations
itertools.combinations
itertools
continue
min
9
recursion
How Deep
type
tuple
max
not
list-comp
11
1
str and recursion
Integer Palindrome
chr
bool
lambda
inline-if
int
11
1
while loop
Reverse Every Ascending
while
and
len
13
1
eval and recursion, one line
Sum of Digits
eval
inline-if
print
join
list
14
1
use median from statistics
Median of Three
statistics.median
statistics
median
typing.Iterable
Iterable
15
f-string
The Hollow Diamond
f-string
abs
bool
join
range
18
1
First
String-2-Matrix
upper
tuple
in
append
comprehension
20
First
Matrix-2-String
chr
enumerate
lambda
sum
join
20
permutations + dict
Cipher Crossword
itertools.permutations
permutations
chain
itertools.chain
dict
1
First
Ordinary Cardinals
lambda
count
sorted
list-comp
list
heh, not so graceless
Compress List
typing.Iterable
Iterable
not
typing
if-comprehension
slice
Chunk
typing.Iterable
Iterable
typing
list-comp
range
2
sorted with two keys
Frequency Sorting
lambda
count
sorted
True
sorted and pop
Sort Except Zero
pop
typing.Iterable
Iterable
typing
inline-if
operator and heapq
The Final Stone
neg
operator.neg
heapify
heapq.heapify
heappush
1
two simple solutions
Count Inversions
map
enumerate
lambda
sum
list-comp
1
First
Determine the Order
issubset
fromkeys
dict-comp
dict
items
recursion
The Flat Dictionary
type
str
for
if
classic
Median
float
List
typing.List
sort
typing
1
one string
Index Power
math.pow
pow
math
inline-if
list
string replace
Flatten a List
map
replace
split
list
int
2
flip tuple
Xs and Os Referee
tuple
List
typing.List
zip
map
1
Incinerator
classic
The Defenders
Ellipsis
class
property
decorator
pass
2
2
classic
The Vampires
Ellipsis
class
property
decorator
pass
5
1
classic
Army Battles
Ellipsis
class
property
decorator
pop
11
2
classic
The Warriors
Ellipsis
class
property
decorator
not
3
First
Multicolored Lamp
class
pass
2
Mine
recursion
Count Morse
startswith
replace
not
sum
if-comprehension
1
First
Fibonacci Poem
extend
print
join
while
append
1
3
formula
Toothpicks
math.log2
log2
math
not
else
1
2
recursion + cache
Cut Into Squares
cache
functools.cache
math.inf
inf
decorator
1
2
Second
Ulam–Warburton Automaton
lambda
sum
range
comprehension
1
defaultdict
Switch Keys to Values
collections.defaultdict
defaultdict
add
dict
items
2
3
recursive
Count Morse
replace
lambda
inline-if
sum
if-comprehension
2
simple check
What Is Wrong With This Family?
zip
enumerate
set
in
False
3
3
First
Replace with Biggest
typing.Iterable
Iterable
max
typing
print
3
1
zip & set
Longest Common Prefix
zip
pop
set
while
and
3
DFS + recursion
Fast Train
any
List
typing.List
zip
min
4
1
while + pop
Matrix "Hatching"
yield
pop
typing.Iterable
min
Iterable
4
1
recursion
Chess Knight
type
chr
ord
set
not
5
1
set & recursion
Ulam-Warburton Automaton Hex
add
continue
set
in
int
6
1
repl as lambda in re.sub
Chemical Analysis
re.sub
sub
findall
re.findall
re.search
6
with recursion and set
Domino Chain
enumerate
replace
set
lambda
inline-if
7
zip_longest, groupby, starmap
Long Pressed
itertools.starmap
starmap
itertools.zip_longest
zip_longest
groupby
7
First
Integer Sign Determination
print
int
str
8
1
regex 5 lines
Long Pressed
fullmatch
re.fullmatch
re.sub
sub
r-string
8
2
re, fullmatch, escape
Long Pressed
fullmatch
re.fullmatch
escape
re.escape
all
11
9
First
Achilles and the Tortoise
12
1
BFS for distance, first step for directions
Find Enemy
chr
items
ord
pop
index
13
1
First
Rectangle Perimeter
print
int
13
regex
Adjacent Letters
re.sub
sub
r-string
re
print
15
escape
Escape
filter
round
continue
min
lambda
16
A147562(n) = A151920(2n-2), n >= 1
Ulam–Warburton Automaton
lambda
sum
range
comprehension
int
16
one string solution
Cut Sentence
inline-if
join
split
len
17
1
clear and readable
Aggregate by Operation
eval
f-string
dict
tuple
not
17
1
First
Find Remainder
print
int
17
1
add zeros around of grid and sum slices
Moore Neighbourhood
sum
list-comp
comprehension
len
18
1
recursion 5 lines
Disposable Teleports
strip
set
max
if-comprehension
in
First
Postfix Evaluation
typing.Union
Union
eval
type
is
get neibors and set color through recursion
Color Map
chain
itertools.chain
copy
itertools
set
recursion
Number With Exclamation
inline-if
print
int
math.gcd
The Greatest Common Divisor
math.gcd
gcd
math
int
for
1
First
The Greatest Common Divisor
min
max
not
sorted
True
slice + lambda
Can Balance
typing.Iterable
Iterable
typing
lambda
sum
First
Best Stock
iter
next
get
dict
sorted
2
use permutation
Bigger Together
itertools.permutations
permutations
itertools
List
typing.List
numpy
Determinant
numpy.linalg
linalg
numpy
as
only boolean
Fizz Buzz
int
str
use format
Binary Count
f-string
count
int
1
join and map
Caesar Cipher (encryptor)
chr
ord
map
lambda
inline-if
filter, map and join
Caesar Cipher (decryptor)
filter
chr
ord
map
lambda
Ice Base
Second
Is String a Number?
isdecimal
bool
print
False
True
1
regex, 7 lines
Write Quadratic Equation
re.sub
sub
f-string
r-string
re
1
8
5 lines - sub + split + eval
Reveal the Number
eval
re.sub
sub
f-string
float
1
2
First
Close Enough
tuple
min
abs
while
list
1
1
recursive
Cleaning Robot
replace
count
inline-if
join
comprehension
1
7-liner, recursion + frozenset
Count Chains
frozenset
Tuple
typing.Tuple
set-comp
any
3
3
simple shift
Identify Block
set-comp
items
min
None
in
4
3
1 line
Largest Rectangle in a Histogram
max
join
split
comprehension
len
5
4 line - re.sub + split + eval
Reveal the Number
eval
f-string
r-string
None
inline-if
5
First
Is String a Number?
isnumeric
bool
print
False
True
6
First
One Switch Strings
bool
print
join
False
True
6
combinations_with_replacement
The Centrifuge Problem
sympy.primefactors
primefactors
combinations_with_replacement
itertools.combinations_with_replacement
sympy
6
1
clear maths
Oil Pie
math.gcd
gcd
math
map
abs
7
1
count path
Cleaning Robot
replace
count
join
range
comprehension
9
1 line, sum
Monkey Typing
set
lower
sum
in
comprehension
10
simple regex
Find Quotes
findall
re.findall
r-string
re
10
sorted
Move Zeros
lambda
print
sorted
list
int
10
1
First
When "k" is Enough!
setdefault
yield
typing.Iterable
Iterable
typing
10
for and items.count
Move Zeros
count
print
if-comprehension
list-comp
list
11
1
yield
Quadratic Equation Roots
typing.Union
Union
collections.abc.Iterable
yield
float
20
1 line, classic
Morse Encoder
lower
join
comprehension
1
First
Leap Year Checking
bool
not
or
print
False
First
Correct Capital
istitle
islower
isupper
bool
or
2
groupby
Count And Say
groupby
itertools.groupby
itertools
join
list
findall
Count And Say
findall
re.findall
r-string
re
join
First
Is String a Number? (Part II)
match
re.match
r-string
re
bool
First
Perfect Number Checking
bool
not
range
int
for
1 line, groupby + max
Long Repeat
groupby
itertools.groupby
itertools
max
inline-if
1
First
Interesting, intersecting
tuple
bool
print
False
and
First
Not in Order
zip
sum
print
sorted
list
5 lines, recursion
How to Find Friends
set
inline-if
sum
if-comprehension
in
1
recursion with cache
Making Change
filter
dict-comp
float
min
None
classic
The Most Numbers
min
max
inline-if
2
classic
Feed Pigeons
while
if
First
Counting Tiles
lambda
sum
and
range
comprehension
classic
Clock Angle
min
abs
list-comp
split
comprehension
Alice In Wonderland
clear
Bishop vs Aliens
tuple
break
bool
inline-if
while
1
1
recursion
YAML. Complex Structure
update
strip
lstrip
pop
None
2
1
A250000
Peaceable Queens
case
match-case
int
2
1
determinant
Count Domino Tilings
complex
numpy.linalg
linalg
numpy.zeros
zeros
5
1 line, clear math
Multiplication Table
f-string
count
len
6
3
classic
Middle Characters
len
6
1
while + for loops
Zigzag Array
List
typing.List
typing
while
append
6
simple recursion
Tree Walker
isinstance
values
dict
sum
list
6
1
use previous solution, not optimize but take only 5 min
The Shortest Knight's Path
type
chr
ord
set
not
9
list zip
Transposed Matrix
List
typing.List
zip
map
typing
16
1
count inversion
15-puzzle Solvability
divmod
index
sum
range
list
16
sum tuple zip
Swap Nodes
tuple
zip
sum
len
17
First
Long Non Repeat
set
max
if-comprehension
range
comprehension
19
First
YAML. List and Comments
re.sub
sub
strip
dict-comp
r-string
datetime strptime weekday
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
1
GitHub
math sin cos
Searchlights
math.cos
cos
math.sin
sin
math.pi
2
2
5 - liner, recursion in recursion =)
Simplify Unix Path
re.sub
sub
r-string
re
lambda
2
1
so so
Barcode Reader
zip
enumerate
index
None
or
4
minimax algorithm
Xs and Os Champion
copy.deepcopy
deepcopy
copy
type
zip
6
Simple Recursion :-)
The Cheapest Flight
List
typing.List
enumerate
index
min
7
1
1 line - dict split strip
Cookies
strip
dict
lambda
split
comprehension
8
1
First
The End of Other
endswith
any
list-comp
comprehension
9
1
use bfs to find the paths, roll and mark cube
Paper Dice
reverse
yield
values
all
zip
10
8 lines
Power Supply
items
set
sum
if-comprehension
in
11
Gauss's area formula
Area of a Convex Polygon
zip
abs
sum
comprehension
18
1
merge and summ
Painting Wall
max
inline-if
sum
sorted
range
18
1
First
Shooting Range
intersection
round
zip
lambda
or
20
works but ugly
Power Plants
Dict
typing.Dict
typing.Set
Set
itertools.permutations
regex in loop, 8 lines
Simplify Unix Path
re.sub
sub
r-string
items
re
2
First
Create Intervals
min
set
lambda
inline-if
while
2
set + range
The Most Frequent Weekdays
date
datetime.date
datetime
set
inline-if
2
zip(*buildings)
The Highest Building
zip
index
max
count
list
1
First
Solution for Anything
class
True
recursion + combinations
Long Repeat Inside
combinations
itertools.combinations
itertools
index
max
2
diff + gcd
Evenly Spaced Trees
math.gcd
gcd
math
zip
sum
1
range + sum
Expand Intervals
typing.Iterable
Iterable
typing
sum
list-comp
1
classic dfs throw recursion
Open Labyrinth
List
typing.List
not
typing
lambda
classic
Broken Clock
datetime.strptime
strptime
datetime.timedelta
timedelta
datetime.datetime
First
Merge Intervals
max
not
list-comp
list
comprehension
1
Dropbox
First
Grille Cipher Attack
logical_and
numpy.logical_and
divmod
numpy
yield
1
1
str & int
Armstrong Number Checking
bool
sum
comprehension
int
str
4
First
Calculator-I
case
match-case
eval
isnumeric
lstrip
6
brute force
Hubspot Amulet
range
for
if
6
First
Tricky String
zip
sum
range
comprehension
str
7
hashlib.new
Simple Hashlib
hashlib.new
new
hashlib
8
2
simple recursion
On the same path
typing.Union
Union
Tuple
typing.Tuple
copy
8
combinations
Count Squares
combinations
itertools.combinations
itertools
tuple
sorted
10
max, key, default
The Longest Word
max
split
str
len
12
1
First
Worth of Words
lambda
sum
sorted
list-comp
comprehension
13
1
First
Reverse Integer
rstrip
int
str
13
queue
e+pi
OverflowError
eval
pass
float
continue
13
try pop ellipsis
Common Tail
Ellipsis
IndexError
pop
None
except
14
1
3 if
Frogs Collision
zip
and
comprehension
if
16
recursion + sets
Place Queens
difference
union
update
copy
values
18
First
All Permutations
itertools.permutations
permutations
itertools
sorted
join
19
transform with dict
Atbash Cipher
get
dict
zip
join
comprehension
20
simple math
Count Divisibles in Range (simplified)
int
20
First
Scytale Encryption
Optional
typing.Optional
pop
None
typing
2
recursion and compare as tuple
Huffman Encode
translate
insert
lstrip
enumerate
pop
classic
Numbers Factory
not
inline-if
while
range
int
2
yield + stack
Revorse the vewels
yield
get
upper
isupper
pop
First
Maximum Among Three
max
print
int
1
First
Sort Sorted Groups
is
continue
None
not
or
classic
The Longest Palindromic
index
lambda
sorted
if-comprehension
list-comp
1
clear maths
Three Points Circle
eval
format
round
takewhile
Common Tail
itertools.takewhile
takewhile
ValueError
itertools
zip
2
First
Rotating Grille Cipher
Optional
typing.Optional
findall
re.findall
List
recursion
Sum of Integers
inline-if
int
recursion
Nonogram Row
zip
None
replace
set
not
First
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
regex
URL Normalization
re.sub
sub
re.search
search
chr
First
Text Formatting
divmod
strip
pop
replace
join
1
phi number, golden ratio
The Best Number Ever
oct
ascii
hex
hash
clear
1
heh
Speech Module
elif
if
1
Third
The Best Number Ever
oct
ascii
AssertionError
hex
Enum
PyCon TW
First
Building Visibility
arange
numpy.arange
numpy
as
values
11
bubble sort
Robot Sort
f-string
strip
range
list
len
18
Second
Ryerson Letter Grade
chr
print
elif
and
else
numpy linalg
How Much Gold
numpy.solve
solve
numpy.linalg
linalg
Fraction
match case
Simple Areas
case
match-case
1
inverted pyramid and sum
Golden Pyramid
enumerate
max
list-comp
range
list
1
second
Double Substring
count
print
range
int
str
First
Ryerson Letter Grade
enumerate
print
list-comp
comprehension
int
1
groupby
Sum Consecutives
groupby
itertools.groupby
itertools
sum
list-comp
First
House Password
islower
any
isupper
isdigit
bool
1
re findall
Double Substring
findall
re.findall
r-string
map
re
recursion
Calculate Islands
any
List
typing.List
continue
typing
First
Network Attack
set-comp
min
while
if-comprehension
list-comp
First
Digit Stack
pop
lambda
inline-if
append
split
Storage
First
Working Hours Calculator
datetime.strptime
strptime
datetime.timedelta
timedelta
set-comp
2
1
First
Square Spiral
case
match-case
divmod
abs
bool
10
__mod__
Restricted Prime
not
while
False
True
if
14
1
join + int(,2)
Word Pattern
isdigit
inline-if
join
comprehension
int
16
1
First
List Beautify
rjust
zip
replace
max
print
doubled hexagonal coordinates
Hexagon Spiral
case
match-case
divmod
abs
bool
groupby
Group Equal consecutive
groupby
itertools.groupby
itertools
list-comp
list
simple
Playfair Cipher
fromkeys
isalnum
divmod
dict
index
First
Skew-symmetric Matrix
all
range
comprehension
len
lambda + zip
Weak Point
zip
enumerate
min
lambda
sum
Maya
move cube to colored cell and collect with bfs nearby colored cells
Roll the cube
typing.Set
Set
difference
frozenset
union
2
HubSpot
binary search
Workout
List
typing.List
zip
max
typing
4
rotate with numpy
Inscribe a Contour
deg2rad
numpy.deg2rad
numpy.cos
numpy.sin
arange
5
First
Node Disconnected Users
filter
values
set
lambda
sum
6
1
bfs
Triangular Islands
typing.Set
Set
math.ceil
ceil
yield
8
0x66666667 - magic number
Univocalic davasaan
lambda
and
13
1
datetime timedelta
Weekly Calendar
datetime.timedelta
timedelta
datetime.datetime
datetime
List
15
1
6 lines solution
Node Disconnected Users
values
set
not
lambda
inline-if
19
bfs and set
Supply Line
yield
chr
ord
pop
None
1
Second
Team Play
List
typing.List
zip
enumerate
typing
5 lines, recursion
New Cities
frozenset
set-comp
set
lambda
inline-if
1
First
Square Board
Tuple
typing.Tuple
typing
list-comp
range
strange solution with sets
City's Happiness
copy.deepcopy
deepcopy
chain
itertools.chain
copy
First
Repeating Decimals
f-string
not
while
and
str
try except
Number Base
except
try
int
str
1
First
Auto Painting
min
join
list-comp
range
comprehension
len set map
Non Empty Lines
strip
map
set
print
split
eval
Restricted Sum
eval
map
join
str
1
clear
The Hamming Distance
rjust
f-string
zip
max
sum
1
Blizzard
convert to x-axis coordinates and remove intersections
Mountain Scape
Tuple
typing.Tuple
List
typing.List
zip
3
recursion
Sudoku Solver
zip
pop
set
not
sum
7
2
First
Palindromic Palindrome
lambda
12
4 lines, regular expression safe us :-)
Stressful Subject
IGNORECASE
re.IGNORECASE
re.search
search
r-string
13
7
recursion
Checkers Capture
remove
continue
abs
max
or
13
point sum
Rectangles Union
set
range
len
for
17
1 line, recursion
Stair Steps
max
inline-if
comprehension
len
20
use factorial number system
Permutation Index
math.factorial
factorial
Tuple
typing.Tuple
remove
1
datetime timedelta strftime strptime
The First Working Day
datetime.strptime
strptime
datetime.timedelta
timedelta
datetime.datetime
1
recursion, 1 line
Stair Steps
max
lambda
inline-if
comprehension
len
Prim's algorithm
Connect Stars
combinations
itertools.combinations
Tuple
typing.Tuple
itertools
BFS
Useless Flights
add
enumerate
pop
or
while
dijkstra
Useless Flights
heappush
heapq.heappush
heappop
heapq.heappop
heapq
use factorial number system
Reversed Permutation Index
math.factorial
factorial
divmod
yield
math
math
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
2
with rectange in histogram
Spaceship Landing Strip
translate
enumerate
max
while
and
using datetime.date
Unlucky Days
date
datetime.date
datetime
sum
range
1
clear
Safe Coasts
enumerate
replace
not
lambda
while
BFS
String Conversion
continue
pop
while
in
append
BFS
Radiation Search
continue
pop
inline-if
while
if-comprehension
sorted
Min and Max
None
inline-if
sorted
in
True
Rock
5 lines
Fibonacci Spiral's End
range
list
int
for
2
get unsocial chains and with product\compress remove combinations of benches from chains
Park Benches
compress
itertools.compress
itertools.product
product
Tuple
4
1
dichotomy (half-division method)
Super Root
not
inline-if
while
8
2
combinations
Garland
combinations
itertools.combinations
set-comp
itertools
if-comprehension
10
Second
Fibonacci Spiral's End
operator.sub
operator.add
cycle
itertools.cycle
operator
16
6 lines
Fibonacci Spiral's End
range
list
int
for
1
First
Sort by Removing
if-comprehension
list-comp
list
comprehension
int
recursion
Greedy Number
functools.lru_cache
lru_cache
decorator
functools
enumerate
Shelter
recursion
Halloween Monsters
all
replace
max
count
comprehension
1
1
simple lifehack
Four To The Floor
all
map
max
lambda
inline-if
4
First
Landing Site
typing.Set
Set
chr
ord
pop
5
1 line, clear math
The Nearest Square Number
math.sqrt
sqrt
round
math
7
1
First
Completely Empty
hasattr
all
None
not
or
recursion
Delivery Drone
type
float
enumerate
min
abs
Euler path by stack
One line Drawing
iter
collections.defaultdict
defaultdict
next
values
First
Ghosts Age
inline-if
while
in
append
range
set
Seven Segment
map
set
for
if
Codeship
generator
Champernowne Word
next
map
while
True
int
1
2
dice as a list
Rolling 🎲!
pop
lambda
int
str
for
3
1
Hermit
First
Birthday Party
datetime.timedelta
timedelta
date
datetime.date
datetime
5
1
recursion
Stacking Cubes
index
min
max
not
or
8
1
sympy.expand
Simplification
replace
lambda
8
re.sub + while
Backspace Apply
re.sub
sub
r-string
re
print
9
1
data.discard()
Shorter Set
discard
min
None
set
max
13
1
set & hypot
Colder-Warmer
math.hypot
hypot
set-comp
math
zip
16
1
Fraction and match\case
Fractions Addition
case
match-case
Fraction
fractions.Fraction
fractions
19
1
DFS
Network Loops
setdefault
continue
pop
set
while
20
1
data.difference_update()
Shorter Set
difference_update
min
None
set
max
20
math + asin
Strawberry Fields
math.asin
asin
math.degrees
degrees
math.sqrt
First
Unique Email Addresses
partition
replace
set
lower
print
simple sum
Excel Column Number
ord
enumerate
sum
print
comprehension
First
Stock Profit
max
print
list-comp
range
list
Second
Ore In The Desert
round
pop
lambda
if-comprehension
list-comp
bruteforce
Break Rings
union
combinations
itertools.combinations
functools.reduce
reduce
First
Count Consecutive Summers
while
range
for
if
1
First
The Good Radix
ValueError
except
try
max
while
Watchtower
recursion
Stepping Stones Puzzle
set-comp
values
dict-comp
keys
get
7
Jarvis
Convex Hull
continue
min
not
lambda
or
First
Funny Addition
2
First
Rotate Hole
all
if-comprehension
list-comp
range
comprehension
Escher
First
Safe Code
startswith
eval
continue
replace
or
18
First
Treasures
items
min
sorted
if-comprehension
list-comp
3
First
Hypercube
yield
any
not
lower
if-comprehension
set
The Buttons
discard
intersection
update
set-comp
enumerate
deck remove
Card Game
remove
in
elif
False
True
win position
The Stones
any
pop
if-comprehension
range
comprehension
First
The Ship Teams
items
or
sorted
if-comprehension
comprehension
1
First
Keys and Locks
zip
if-comprehension
in
list-comp
split
First
The Secret Room
index
bool
sorted
range
comprehension
First
Wild Dogs
combinations
itertools.combinations
collections.Counter
Counter
itertools
First
Ground for the House
ValueError
zip
enumerate
min
except
First
The Stone Wall
zip
index
min
count
list-comp
First
Compass, Map and Spyglass
dict-comp
enumerate
index
abs
max
Not On Map
dict + groupby
Most Wanted Letter
groupby
itertools.groupby
values
dict
items
10
First
Length of the String
print
int
str
len
13
First
Aggregate and Count
dict
inline-if
print
in
list
2