26
Marcin_Ramotowski
5 17 39
3562/ 3945
Marcin Ramotowski
Last seen 6 months ago
Member for 3 years, 3 months, 4 days
Difficulty Normal
Missions (282) / Solutions (107)
Best solutions / Newest solutions
Electronic Station
Easy
All Upper II
isspace
upper
isdigit
bool
or
1
First
Similar Triangles
dist
math.dist
math.degrees
degrees
Tuple
Numpy power
Find Sequence
numpy.shape
shape
matrix
numpy.matrix
numpy.rot90
12
Scientific Expedition
Readable solution using numpy
The Hidden Word
numpy.array
array
numpy
as
map
3
Numpy
Cipher Map
numpy.rot90
rot90
numpy.array
array
numpy
My solution
Morse Clock
rstrip
f-string
map
enumerate
isdigit
1
Specialized functions
YAML. More Types
rfind
strip
dict
find
zip
3 lines in body
YAML. Simple Dict
dict
zip
isdigit
inline-if
sorted
3
Clear
Call to Home
List
typing.List
typing
in
list-comp
1
Easy to understand solution
Bird Language
while
in
elif
else
len
1
The shortest solution - only one additional line
Absolute Sorting
tuple
abs
lambda
sorted
list
8
O'Reilly
Help regex
Flatten a List
re.search
search
re
replace
lambda
Short with using chain
Xs and Os Referee
chain
itertools.chain
itertools
List
typing.List
1
My clear solution
How Deep
AttributeError
extend
pass
except
try
Short with using itertools
Lightbulb End Watching
itertools.zip_longest
zip_longest
Optional
typing.Optional
iter
Short - only 5 lines
Lightbulb Intro
iter
datetime.datetime
datetime
List
typing.List
1
Good but too long and memory consuming
Sort Except Zero
remove
sort
index
typing.Iterable
Iterable
Very short and easy
Count Inversions
enumerate
for
if
2
Short
Compress List
typing.Iterable
Iterable
typing
append
range
Only 1 line - the shortest solution
Majority
lambda
count
inline-if
False
True
1
One line sholution
Index Power
inline-if
list
int
len
2
Incinerator
Standard
Voice TV Control
class
type
index
None
inline-if
First
Microwave Ovens
ABC
abc.ABC
abc.abstractmethod
abstractmethod
abc
Simple
Text Editor
class
f-string
None
append
if
Simple
Party Invitations
class
remove
None
inline-if
append
Cycle
Multicolored Lamp
cycle
itertools.cycle
class
next
itertools
Chain
Friends
class
from_iterable
itertools.from_iterable
chain
itertools.chain
Simple solution
Dialogues
class
object
property
decorator
f-string
Short
Capital City
class
object
super
None
not
Easy
3 Chefs
ABC
abc.ABC
abc
class
f-string
2
Simple and readable
Army Units
class
f-string
None
str
Simple checking attributes
The Weapons
class
itertools.zip_longest
zip_longest
property
super
10
1
My solution
Straight Fight
class
itertools.zip_longest
zip_longest
property
super
Simple
The Vampires
class
property
super
decorator
all
Simple
The Defenders
class
property
super
decorator
all
19
Simple
Army Battles
class
property
super
decorator
all
First
The Warriors
class
property
super
decorator
all
Mine
Functions in dict
Aggregate by Operation
get
dict
tuple
continue
pop
1
First
Currency Style
re.search
search
continue
re
None
Readable solution
The Einstein Problem-Lite
from_iterable
itertools.from_iterable
chain
itertools.chain
dict-comp
numpy.linalg.det
Determinant
numpy.det
det
numpy.linalg
linalg
numpy
One line
Moore Neighbourhood
abs
lambda
count
if-comprehension
and
Easy
Caesar Cipher (decryptor)
rstrip
chr
ord
isalpha
elif
1
Short lambda
Binary Count
bin
lambda
count
Short lambda
Achilles and the Tortoise
lambda
1
Modified sorted
Bigger Together
List
typing.List
map
min
max
Short one line
Best Stock
items
max
lambda
One line
Cut Sentence
isspace
rfind
find
lambda
or
1
Ice Base
fractions
Oil Pie
Fraction
fractions.Fraction
fractions
abs
sum
Short with fractions
Oil Pie
Fraction
fractions.Fraction
fractions
abs
sum
Short and clear
Largest Rectangle in a Histogram
max
append
range
else
for
Clear
Largest Rectangle in a Histogram
max
in
append
range
else
Simple
Reverse Roman Numerals
replace
count
for
if
1
Easy to understand solution
Roman Numerals
reverse
while
in
and
list
Alice In Wonderland
2 lines -> lambda with zip and chain.from_iterable
Swap Nodes
from_iterable
itertools.from_iterable
chain
itertools.chain
itertools
Items collector
Tree Walker
type
extend
values
all
dict
Functions
YAML. List and Comments
rfind
strip
dict
find
zip
Very readable
IP Network: Route Summarization
f-string
bin
break
set
while
Matrix
Multiplication Table
numpy.zeros
zeros
numpy
bin
map
6
Short
The Fastest Horse
dict-comp
items
index
min
set
Easy
Middle Characters
inline-if
len
10
Short with numpy
Zigzag Array
numpy.zeros
zeros
iter
next
numpy
13
1
2 short lambdas
When is Friday?
datetime.strptime
strptime
as
datetime.datetime
datetime
20
GitHub
Simple way
Cookies
find
inline-if
in
str
len
Clear magic
Solution for Anything
class
lambda
True
Simple math
Evenly Spaced Trees
math.gcd
gcd
List
typing.List
math
My solution
Broken Clock
isspace
datetime.timedelta
timedelta
datetime.datetime
round
Easy to understand solution
Power Supply
from_iterable
itertools.from_iterable
chain
itertools.chain
set-comp
Basic math
Shooting Range
dist
math.dist
round
math
inline-if
Short - only 2 lines in body
Expand Intervals
from_iterable
itertools.from_iterable
chain
itertools.chain
itertools
My clear solution
Create Intervals
zip
sort
append
range
list
Very clear
The Most Frequent Weekdays
date
datetime.date
datetime
inline-if
sorted
Dropbox
Simple and readable
Text Formatting
enumerate
join
while
elif
list-comp
1
fractions
Friendly Number
Fraction
fractions.Fraction
fractions
round
index
Very short and clear
The Longest Palindromic
max
range
str
len
for
One line
Worth of Words
max
lambda
sum
comprehension
PyCon TW
BFS with numpy
Calculate Islands
numpy.where
where
numpy.array
array
numpy
with class Computer
Network Attack
class
property
decorator
f-string
min
Short
Double Substring
count
range
int
str
len
Simple
Digit Stack
pop
in
elif
append
int
Short and clear
Simple Areas
math.pi
pi
math.sqrt
sqrt
math
Simple regex
House Password
re.search
search
re
bool
False
Short and clear
Ryerson Letter Grade
splitlines
reversed
dict
inline-if
list-comp
Storage
Haversine formula
Earth Distances
math.cos
cos
math.asin
asin
math.pi
Numpy power
Playfair Cipher
nonzero
numpy.nonzero
numpy.zeros
zeros
itertools.zip_longest
5
Readable solution
Moria Doors
punctuation
string.punctuation
string
round
enumerate
Numpy power
English to Braille Translator
numpy.zeros
zeros
zfill
numpy
bin
8
First
Square Spiral
cycle
itertools.cycle
numpy.zeros
zeros
next
4
Simple
Group Equal consecutive
None
append
list
else
for
My solution
Restricted Prime
reverse
yield
map
break
while
My solution with generator
Saw the Stick
yield
while
and
range
list
Very short and clear
Skew-symmetric Matrix
numpy.array
array
numpy
all
Short with numpy
Weak Point
numpy.array
array
numpy
index
min
3
1
Easy
Word Pattern
bin
isalpha
bool
inline-if
int
Blizzard
numpy + modified bfs
Safe Coasts
numpy.where
where
numpy.array
array
numpy
7
BFS with numpy
Radiation Search
numpy.where
where
from_iterable
itertools.from_iterable
numpy.array
10
Dynamic
Stair Steps
max
range
int
len
for
Matrix
Rectangles Union
numpy.zeros
zeros
from_iterable
itertools.from_iterable
chain
4
Mathematic
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
List
1
Short and clear
Reversed Permutation Index
math.factorial
factorial
remove
math
typing.Iterable
Very short and easy
Permutation Index
math.factorial
factorial
Tuple
typing.Tuple
remove
Very short and clear
Permutation Index
Tuple
typing.Tuple
remove
sort
typing
With using histograms
Spaceship Landing Strip
break
max
in
append
range
10
Short and easy
The First Working Day
datetime.timedelta
timedelta
date
datetime.date
datetime
Shelter
Fibo Generator
Ghosts Age
next
yield
while
True
else
Simple math
The Nearest Square Number
math.sqrt
sqrt
math
min
abs
1
Hermit
Easy
The Good Radix
dict-comp
chr
max
inline-if
in