23
PetrStar
9 23 42 Leader of the month
3080/ 3195
Петр Стариченко
Last seen 2 years ago
Member for 3 years, 6 months, 20 days
Difficulty Normal
Looking for a job in Poland, Warsaw

Missions (187) / Solutions (142)
Best solutions / Newest solutions
Initiation
First
Nearest Value
abs
set
lambda
sorted
list-comp
10
First
Replace First
typing.Iterable
Iterable
typing
list
11
5
First
Beginning Zeros
lstrip
int
str
len
2
bred
Max Digit
digits
string.digits
string
max
lambda
Bad solution
Correct Sentence
endswith
islower
upper
inline-if
str
1
First
Split Pairs
inline-if
list-comp
range
comprehension
len
1
First2
Nearest Value
min
abs
set
lambda
list-comp
First
All the Same
Any
typing.Any
List
typing.List
bool
Home
First
Sort Array by Element Frequency
collections.Counter
Counter
collections
index
lambda
First
Morse Decoder
capitalize
join
split
comprehension
1
First
Split List
is
None
inline-if
list
int
First
Sun Angle
inline-if
and
split
int
Electronic Station
First
Acceptable Password III
isdigit
bool
sum
and
list-comp
12
First
Acceptable Password IV
isdigit
bool
sum
list-comp
comprehension
15
First
Surjection Strings
keys
dict
enumerate
bool
in
18
sort by extension and name
Sort by Extension
rfind
List
typing.List
typing
lambda
First
Ascending List
all
typing.Iterable
Iterable
bool
typing
First
Acceptable Password II
any
isdigit
bool
and
list-comp
Second
All Upper II
isupper
bool
str
First
Words Order
index
bool
except
try
set
First
Acceptable Password V
isdigit
bool
lower
sum
list-comp
First
Digits Multiplication
math.prod
prod
math
if-comprehension
list-comp
First
All Upper II
any
upper
isalpha
bool
inline-if
First
Similar Triangles
combinations
itertools.combinations
Tuple
typing.Tuple
itertools
First
Acceptable Password VI
digits
string.digits
ascii_lowercase
string.ascii_lowercase
string
First
Boolean Algebra
not
or
elif
and
if
difficult solutions
Digits Multiplication
math.exp
exp
math.log
log
round
stack
Brackets
collections.deque
deque
collections
pop
index
Scientific Expedition
Ordinary
Follow Instructions
tuple
elif
for
if
15
short story
I Love Python!
1
Bad solution
YAML. More Types
splitlines
isnumeric
strip
dict-comp
items
nested coords 2
Cipher Map
List
typing.List
enumerate
typing
sorted
simple try
Goes Right After
index
bool
except
try
False
First
Caps Lock
upper
enumerate
inline-if
join
list-comp
First
YAML. Simple Dict
splitlines
dict-comp
isdigit
inline-if
if-comprehension
First
Time Converter (24h to 12h)
time.strftime
time.strptime
strftime
time
strptime
all (ascii_lowercase)
Pangram
ascii_lowercase
string.ascii_lowercase
as
string
all
First
The Most Wanted Letter
collections.Counter
Counter
collections
isalpha
lower
First
Sum by Type
Tuple
typing.Tuple
type
typing
sum
Excelent!
Conversion into CamelCase
capitalize
join
list-comp
split
comprehension
unicodedata (googling)
Remove Accents
combining
unicodedata.combining
normalize
unicodedata.normalize
unicodedata
Bad solution
The Hidden Word
isspace
pass
index
except
try
First
Call to Home
math.ceil
ceil
keys
items
math
First
Conversion from CamelCase
ascii_uppercase
string.ascii_uppercase
as
string
enumerate
Sorted key = abs
Absolute Sorting
tuple
abs
lambda
sorted
list
Bad solution
Morse Clock
zfill
format
enumerate
join
and
simple deque
Letter Queue
collections.deque
deque
collections
List
typing.List
Bad solution
Bird Language
while
in
elif
len
if
nested coords
Cipher Map
List
typing.List
enumerate
typing
sorted
Not clear
Striped Words
findall
re.findall
r-string
re
lower
First
Common Words
set
count
sorted
join
if-comprehension
First
Secret Message
findall
re.findall
r-string
re
str
O'Reilly
First
Reverse Every Ascending
append
range
else
len
for
1
First
Sort Except Zero
typing.Iterable
Iterable
typing
inline-if
sorted
12
First
The Flat Dictionary
isinstance
dict
items
not
elif
First
Median of Three
statistics.median
statistics
median
typing.Iterable
Iterable
simple slice
Chunk
typing.Iterable
Iterable
typing
list-comp
range
First
Frequency Sorting
lambda
count
sorted
First
Remove All After
ValueError
index
typing.Iterable
Iterable
except
GroupBy
Compress List
groupby
itertools.groupby
itertools
typing.Iterable
Iterable
1
I used map
Time Converter (12h to 24h)
f-string
map
elif
and
split
Best of the best
Replace Last
list
1
Simple recursion
How Deep
isinstance
tuple
max
if-comprehension
list-comp
simple (not optimize)
Loading Cargo
enumerate
min
abs
sum
if-comprehension
copy
Loading Cargo
add
min
abs
set
for
First
Majority
bool
max
lambda
count
inline-if
First
Median
statistics.median
statistics
median
float
List
First
Flatten a List
isinstance
append
list
else
for
First
Count Inversions
enumerate
sum
comprehension
Bad solution
Xs and Os Referee
List
typing.List
enumerate
pop
set
First
Index Power
except
try
list
int
Mine
First
Escape
as
round
min
abs
inline-if
9
First
Fast Train
collections.deque
deque
extend
all
collections
10
max (lambda = data.get())
Best Stock
get
dict
max
str
Veky solutions
Bigger Together
class
reversed
List
typing.List
map
numpy)
Determinant
numpy.linalg
linalg
numpy
as
round
simple BFS
Chess Knight
collections.deque
deque
update
ascii_lowercase
string.ascii_lowercase
Bad solution
Caesar Cipher (decryptor)
ascii_lowercase
string.ascii_lowercase
chr
string
ord
Bad solution
Currency Style
re.sub
sub
r-string
re
replace
use format and count
Binary Count
format
count
int
math.gcd
The Greatest Common Divisor
math.gcd
gcd
math
int
simple math
Achilles and the Tortoise
more univerasl best solution
Moore Neighbourhood
min
max
sum
range
comprehension
maketrans translate
Caesar Cipher (encryptor)
translate
ascii_lowercase
string.ascii_lowercase
as
string
3 if
Fizz Buzz
inline-if
int
str
1
Ice Base
First
Making Change
set-comp
min
if-comprehension
in
range
4
First
Monkey Typing
set
lower
sum
in
list-comp
19
simple angles
Clock Angle
map
min
abs
split
int
Bad solution
Count Chains
collections.deque
deque
Tuple
typing.Tuple
add
add spase in Morse
Morse Encoder
lower
join
list-comp
comprehension
2
Second
Long Repeat
groupby
itertools.groupby
itertools
max
list-comp
1
Best of the best
Find Quotes
split
1
Brute force
Largest Rectangle in a Histogram
min
max
range
comprehension
len
1
First
Feed Pigeons
max
while
First
The Most Numbers
min
max
First
Long Repeat
else
int
str
for
if
simple BFS
How to Find Friends
setdefault
collections.deque
deque
add
dict
bad soluion
Roman Numerals
values
keys
dict
items
zip
Alice In Wonderland
First
The Fastest Horse
argmin
numpy.argmin
numpy
as
collections.Counter
13
Veky solutions
Swap Nodes
contextlib.suppress
suppress
contextlib
with
Ellipsis
simple BFS
The Shortest Knight's Path
collections.deque
deque
update
ascii_lowercase
string.ascii_lowercase
First
Zigzag Array
List
typing.List
typing
inline-if
list-comp
First
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
inline-if
First
Middle Characters
len
First
Transposed Matrix
List
typing.List
typing
list-comp
range
GitHub
Second
Cookies
dict
split
comprehension
12
First
Expand Intervals
typing.Iterable
Iterable
typing
list-comp
range
Second
Expand Intervals
typing.Iterable
Iterable
typing
range
for
First
Cookies
if-comprehension
list-comp
split
comprehension
First (so so)
Create Intervals
except
try
sorted
append
else
using gcd
Evenly Spaced Trees
math.gcd
gcd
List
typing.List
math
Bad BFS
The Cheapest Flight
collections.deque
deque
collections
List
typing.List
First
Merge Intervals
max
not
range
else
len
Sorry (Bad solution)
Long Repeat Inside
groupby
itertools.groupby
match
re.match
is
try index
The Highest Building
continue
enumerate
index
except
try
Bad solution
The Most Frequent Weekdays
calendar.day_name
day_name
calendar
datetime.timedelta
timedelta
nothing special
Solution for Anything
class
True
simple BFS
Open Labyrinth
collections.namedtuple
namedtuple
collections.deque
deque
copy
First
The End of Other
endswith
any
enumerate
if-comprehension
comprehension
2 solutions
The End of Other
endswith
any
enumerate
lambda
sorted
Dropbox
The Hitchhiker’s Guide to the Galaxy
The Best Number Ever
First
Simple Hashlib
hashlib.new
new
hashlib
update
First
Humpty Dumpty Form
math.log
log
math.asin
asin
math.pi
Maybe not optimal, but I used s[~idx]
The Longest Palindromic
False
and
True
range
len
HubSpot
First
New Cities
setdefault
keys
add
dict
set
1
DFS for every node (not optimal)
City's Happiness
setdefault
collections.deque
deque
update
values
simple BFS
Node Disconnected Users
collections.deque
deque
add
items
collections
Blizzard
unique bottom-left coordinate 1x1
Rectangles Union
Tuple
typing.Tuple
set-comp
List
typing.List
First
Reversed Permutation Index
math.factorial
factorial
collections.deque
deque
collections
count top points. Brute force (not optimal)
Mountain Scape
Tuple
typing.Tuple
add
List
typing.List
First
The First Working Day
datetime.strptime
strptime
datetime.timedelta
timedelta
datetime.datetime
First
Weekend Counter
datetime.timedelta
timedelta
datetime
while
in
First
Permutation Index
math.factorial
factorial
Tuple
typing.Tuple
math
dynamic programming
Spaceship Landing Strip
enumerate
pop
max
inline-if
while
date.weekday()
Unlucky Days
date
datetime.date
datetime
sum
range
Levenshtein distance
String Conversion
min
None
range
len
for
Simple inspection of neighboring cells
Radiation Search
collections.defaultdict
defaultdict
copy
get
collections
Second
Weekend Counter
while
True
if
Rock
Binary search
Super Root
abs
while
else
if
Hermit
Worst of the worst
Keywords Finder
add
find
replace
set
max
Not On Map
Bad solution
Most Wanted Letter
collections.Counter
Counter
collections
isalpha
lower