27
marcopunteri
6 23 40
4193/ 4195
Marco Punteri
Last seen 9 hours ago
Member for 3 years, 1 month, 10 days
Difficulty Advanced
Missions (262) / Solutions (264)
Best solutions / Newest solutions
Initiation
First
All the Same
Any
typing.Any
List
typing.List
bool
1
recursion in 135 chars
Flatten a List
type
inline-if
int
for
2
First
Split Pairs
zip
list-comp
comprehension
len
if
First
All Upper I
upper
bool
str
1
First
Goes Right After
any
bool
or
inline-if
False
First
Roman Numerals
rjust
enumerate
join
list-comp
comprehension
1
lazy
Time Converter (12h to 24h)
datetime.time
datetime.strftime
strftime
time
as
1
First
Sort Array by Element Frequency
fromkeys
collections.Counter
Counter
values
dict
First
Between Markers
inline-if
in
split
else
str
First
Pawn Brotherhood
f-string
tuple
index
set
if-comprehension
Home
First
Rotating Grille Cipher
Optional
typing.Optional
get
List
typing.List
1
translate
Atbash Cipher
translate
ascii_uppercase
string.ascii_uppercase
ascii_lowercase
string.ascii_lowercase
11
First
Scytale Encryption
None
inline-if
join
if-comprehension
in
16
1
First
Ugly Numbers
set-comp
remove
min
while
comprehension
sets
Missing Number
zip
sort
pop
min
set
First
Beginning Zeros
break
else
int
str
for
First
Conversion into CamelCase
capitalize
join
split
comprehension
First
Cut Sentence
break
inline-if
join
split
else
1
First
Sort by Removing
pop
not
or
while
append
oop
Life Counter
class
itertools.product
product
property
decorator
First
Changing direction
zip
inline-if
sum
print
if-comprehension
First
Bird Language
chr
join
while
if-comprehension
in
1
First
Split List
math.ceil
ceil
math
inline-if
list
First
Time Converter (24h to 12h)
f-string
inline-if
split
int
math is everywhere
Xs and Os Referee
math.prod
prod
math.pow
pow
values
1
First
Sun Angle
mktime
time.mktime
time.strptime
time
strptime
Electronic Station
heapq
The Final Stone
heapify
heapq.heapify
heappush
heapq.heappush
heappop
11
re power
Acceptable Password IV
re.compile
compile
re
bool
inline-if
13
First
Unix Match. Part 2
startswith
index
replace
bool
set
First
Acceptable Password V
re.compile
compile
re
bool
lower
1
First
Inside Block
math.isclose
isclose
math.prod
prod
Ellipsis
First
Sort by Extension
List
typing.List
pop
not
typing
re power
Acceptable Password III
re.compile
compile
re
bool
inline-if
First
Can You Pass?
contextlib.suppress
suppress
contextlib
with
IndexError
First
Surjection Strings
collections.Counter
Counter
values
collections
bool
1
Counter makes easy :)
Verify Anagrams
collections.Counter
Counter
collections
lower
join
1
First
Conversion from CamelCase
f-string
chr
upper
lower
list-comp
First
Acceptable Password VI
isdigit
bool
set
lower
if-comprehension
First
Acceptable Password II
re.compile
compile
re
bool
inline-if
First
Digits Multiplication
math.prod
prod
math
if-comprehension
list-comp
First
Boolean Algebra
dict
zip
not
lambda
or
First
Find Sequence
re.compile
compile
r-string
any
List
Scientific Expedition
bisect
Caps Lock
bisect.bisect_left
bisect_left
bisect
upper
ord
7
1
First
YAML. Simple Dict
isnumeric
strip
dict-comp
zip
inline-if
13
First
The Hidden Word
numpy.zeros
zeros
numpy
as
find
18
no regex, only algorithm
Remove Brackets
combinations
itertools.combinations
itertools
enumerate
pop
1
First
Follow Instructions
get
sum
comprehension
First
Common Words
set
sorted
join
split
str
First
Aggregate by Operation
eval
collections.defaultdict
defaultdict
f-string
dict
First
Sum by Type
Tuple
typing.Tuple
type
typing
inline-if
First
Absolute Sorting
tuple
abs
sorted
list
First
Secret Message
chr
join
if-comprehension
in
list-comp
1
First
Pangram
chr
set
not
lower
if-comprehension
i need the intersection
I Love Python!
random.sample
sample
random
intersection
set
First
Cipher Map
List
typing.List
enumerate
typing
sorted
O'Reilly
First
Lightbulb Start Watching
Optional
typing.Optional
datetime.datetime
datetime
List
8
First
Remove All After
index
typing.Iterable
Iterable
typing
inline-if
9
no recursion
The Flat Dictionary
popitem
isinstance
dict
or
join
11
First
Multiple Lightbulbs
bisect.insort
insort
bisect.bisect
bisect
typing.Union
13
First
Compress List
typing.Iterable
Iterable
not
typing
or
15
1
recursion
Cut Into Squares
functools.lru_cache
lru_cache
decorator
functools
min
18
OOP way
Multiple Lightbulbs
bisect.insort
insort
bisect.bisect
bisect
class
1
First
Lightbulb End Watching
bisect.insort
insort
bisect.bisect
bisect
Optional
First
Determine the Order
discard
dict-comp
add
items
enumerate
First
Lightbulb Intro
datetime.datetime
datetime
List
typing.List
zip
1
First
Frequency Sorting
collections.Counter
Counter
get
collections
sorted
1
OOP way, on top on Lightbulb Start Watching oop solution
Lightbulb End Watching
bisect.insort
insort
bisect.bisect
bisect
class
First
Majority
bool
sum
list
len
1
First
Reverse Every Ascending
not
or
sorted
append
True
OOP way, on top of the lightbulb intro oop solution
Lightbulb Start Watching
bisect.insort
insort
bisect.bisect
bisect
class
1
First
Median
math.floor
floor
float
List
typing.List
1
First
Sort Except Zero
insert
enumerate
typing.Iterable
Iterable
typing
1
OOP way
Lightbulb Intro
bisect.bisect
bisect
class
datetime.datetime
datetime
1
First
Median of Three
math.floor
floor
math
map
typing.Iterable
First
Replace Last
insert
pop
list
len
if
First
Index Power
None
list
int
len
if
Incinerator
First
Hacker Language
class
ascii_letters
string.ascii_letters
translate
update
7
3
ok, money method is too complicated :)
Every Person is Unique
class
datetime.strptime
strptime
iter
f-string
11
1
First
The Defenders
class
Exception
copy.deepcopy
deepcopy
raise
13
1
First
The Healers
Ellipsis
class
Exception
copy.deepcopy
deepcopy
Second
The Lancers
class
hasattr
Exception
raise
next
First
The Weapons
class
getattr
collections.namedtuple
namedtuple
hasattr
First
Microwave Ovens
class
divmod
datetime.timedelta
timedelta
super
Second
The Defenders
class
Exception
raise
property
super
Third
The Lancers
class
collections.deque
deque
next
property
First
Straight Fight
class
hasattr
itertools.zip_longest
zip_longest
Exception
Second
The Vampires
class
Exception
raise
property
super
1
Second
Straight Fight
class
hasattr
collections.deque
deque
next
Third
The Vampires
class
collections.deque
deque
property
super
Second
The Healers
class
hasattr
Exception
raise
next
First
The Lancers
Ellipsis
class
Exception
copy.deepcopy
deepcopy
1
First
Friends
class
KeyError
frozenset
add
remove
Third
The Healers
class
hasattr
collections.deque
deque
next
First
Geometry Figures
class
math.pi
pi
math.sqrt
sqrt
First
Army Units
class
super
f-string
decorator
Capital City
class
if
Third
The Defenders
class
collections.deque
deque
property
super
First
Voice TV Control
dataclass
dataclasses
dataclasses.dataclass
class
property
subclassing
Dialogues
classmethod
class
staticmethod
translate
raise
Second
The Warriors
class
property
super
type
decorator
2
I can't tolerate juice with pizza
3 Chefs
class
super
f-string
clean
Party Invitations
Template
string.Template
class
string
remove
First
The Vampires
Ellipsis
class
Exception
copy.deepcopy
deepcopy
1
remember to copy objects
Text Editor
copy.copy
class
copy
f-string
inline-if
First
Multicolored Lamp
cycle
itertools.cycle
class
next
itertools
First
Army Battles
class
Exception
copy.deepcopy
deepcopy
raise
Second
Army Battles
class
Exception
raise
property
super
1
First
The Warriors
class
property
super
decorator
None
1
Third
The Warriors
class
property
super
decorator
f-string
First
Building Base
class
f-string
Mine
First
Champernowne Word
sum
print
join
while
range
9
bored from the batched ban :)
String-2-Matrix
ascii_uppercase
string.ascii_uppercase
ascii_lowercase
string.ascii_lowercase
string
13
simplify the matrix
Matrix-2-String
from_iterable
itertools.from_iterable
chain
itertools.chain
ascii_uppercase
14
straightforward
Close Enough
tuple
min
abs
print
while
15
First
e+pi
OverflowError
combinations_with_replacement
itertools.combinations_with_replacement
from_iterable
itertools.from_iterable
16
key with minimum value
Tricky String
dict-comp
get
zip
min
replace
First
Count And Say
f-string
not
print
else
str
oop
Can Balance
class
property
decorator
insert
zip
2
sum
Correct Capital
islower
isupper
bool
sum
print
First
Sort Sorted Groups
from_iterable
itertools.from_iterable
chain
itertools.chain
itertools
First
Bigger Together
itertools.permutations
permutations
itertools
List
typing.List
2
re
The Longest Word
re.compile
compile
re
inline-if
print
First
Escape
decimal.getcontext
getcontext
Decimal
decimal.Decimal
decimal
First
Replace All Occurrences
replace
print
str
First
One Switch Strings
zip
bool
set
or
sum
boolean one liner
Count Vowels
lower
sum
print
in
comprehension
First
Convert and Aggregate
itemgetter
operator.itemgetter
operator
dict-comp
dict
First
Sum of Digits
sum
print
while
list-comp
comprehension
First
Best Stock
itemgetter
operator.itemgetter
operator
dict
items
2
First
The Greatest Common Divisor
functools.reduce
reduce
functools
min
max
1
First
Caesar Cipher (encryptor)
chr
ord
map
inline-if
join
clear
Caesar Cipher (decryptor)
translate
update
ascii_lowercase
string.ascii_lowercase
dict-comp
Counter
Binary Count
collections.Counter
Counter
f-string
collections
int
1
First
Achilles and the Tortoise
First
Moore Neighbourhood
itertools.product
product
dict-comp
itertools
sum
Ice Base
First
Frogs Collision
tuple
None
inline-if
print
else
10
First
Postfix Evaluation
ZeroDivisionError
typing.Union
Union
eval
type
12
First
Find Quotes
split
18
1
First
Count Divisibles in Range
inline-if
print
elif
int
if
19
First
New Cities
isdisjoint
difference
chain
itertools.chain
union
First
Count Chains
math.pow
pow
Tuple
typing.Tuple
math.sqrt
First
Berserk Rook
set-comp
pop
set
max
not
First
Making Change
dict-comp
get
min
None
in
based on new cities solution
Node Disconnected Users
isdisjoint
difference
chain
itertools.chain
union
First
Clock Angle
min
abs
list-comp
split
comprehension
First
Morse Encoder
lower
inline-if
join
comprehension
First
Long Repeat
set
max
not
if-comprehension
in
1
First
Monkey Typing
set
lower
sum
if-comprehension
in
1
First
Feed Pigeons
inline-if
while
First
How to Find Friends
any
add
pop
index
set
First
The Most Numbers
min
max
not
if
Alice In Wonderland
oneliner
Stock Profit
enumerate
max
print
list
comprehension
First
Greedy Number
index
max
print
comprehension
else
First
Birthday Party
datetime.timedelta
timedelta
date
datetime.date
datetime
First
First Word
re.compile
compile
re
str
First
Words Order
pop
index
break
bool
set
1
First
Correct Sentence
upper
inline-if
str
1
oneliner
Ascending List
typing.Iterable
Iterable
bool
set
typing
1
map
Unique Email Addresses
map
set
lower
print
join
First
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
1
one line
Shorter Set
set
inline-if
print
sorted
list
First
Excel Column Number
ascii_uppercase
string.ascii_uppercase
reversed
string
enumerate
compress
When "k" is Enough!
compress
itertools.compress
Any
typing.Any
itertools
First
When "k" is Enough!
OrderedDict
collections.OrderedDict
Any
typing.Any
collections
First
Nearest Value
min
abs
set
if-comprehension
list-comp
1
First
Multiplication Table
and_
operator.and_
operator.xor
xor
operator.or_
First
Bigger Price
itemgetter
operator.itemgetter
operator
sorted
True
First
Morse Decoder
upper
join
append
split
comprehension
2
First
Zigzag Array
List
typing.List
typing
inline-if
append
breadth first search
Digits Doublets
class
reverse
collections.deque
deque
collections
First
Middle Characters
inline-if
len
First
The Most Wanted Letter
collections.Counter
Counter
values
chr
items
1
First
Easy Unpack
tuple
comprehension
First
Date and Time Converter
calendar.month_name
month_name
calendar
f-string
inline-if
1
First
Backward Each Word
enumerate
isalpha
pop
join
list-comp
one-liner generator
The Good Radix
digits
string.digits
ascii_uppercase
string.ascii_uppercase
next
recursion
End Zeros
elif
else
int
if
3
First
Days Between
date
datetime.date
datetime
abs
GitHub
gcd
Evenly Spaced Trees
math.gcd
gcd
List
typing.List
math
8
1
oop
Simplify Unix Path
class
clear
property
yield
decorator
19
using sets
Merge Intervals
isdisjoint
union
insert
enumerate
pop
First
Cookies
strip
dict-comp
join
list-comp
split
Dijkstra
The Cheapest Flight
math.inf
inf
class
heappush
heapq.heappush
First
The Most Frequent Weekdays
date
datetime.date
datetime
lambda
inline-if
1
First
Expand Intervals
chain
itertools.chain
itertools
typing.Iterable
Iterable
First
The End of Other
bool
join
if-comprehension
in
list-comp
Dropbox
straightforward
Revorse the vewels
upper
isupper
pop
lower
print
8
First
URL Normalization
startswith
f-string
dict-comp
chr
any
9
First
Collatz Ztalloc
type
pop
None
print
while
14
First
Nonogram Row
combinations
itertools.combinations
re.compile
compile
functools.reduce
First
Worth of Words
itemgetter
operator.itemgetter
operator
dict-comp
get
1
First
Text Formatting
rjust
itertools.zip_longest
zip_longest
itertools
break
2
First
Max Digit
max
list-comp
comprehension
int
str
1
First
Numbers Factory
math.prod
prod
partition
yield
math
1
First
Popular Words
collections.Counter
Counter
dict-comp
get
dict
1
methodcaller
Simple Hashlib
methodcaller
operator.methodcaller
hashlib
operator
str
First
Speech Module
rjust
f-string
strip
inline-if
elif
First
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
First
Sum Numbers
continue
except
try
split
int
perfect numbers
The Best Number Ever
math.floor
floor
math.sqrt
sqrt
extend
First
Three Words
re.compile
compile
re
bool
inline-if
2
PyCon TW
First
Robot Sort
f-string
enumerate
max
sorted
join
groupby
Sum Consecutives
groupby
itertools.groupby
itertools
sum
comprehension
bisect
Ryerson Letter Grade
bisect.bisect_right
bisect_right
bisect
as
keys
First
Golden Pyramid
max
sum
list-comp
range
comprehension
First
House Password
islower
any
isupper
isdigit
bool
First
Double Substring
reversed
continue
break
in
range
First
Network Attack
set-comp
dict-comp
any
add
enumerate
First
Simple Areas
math.prod
prod
math.pi
pi
math.sqrt
1
First
Digit Stack
pop
replace
inline-if
in
append
Storage
First
Weak Point
amin
numpy.amin
numpy.where
where
numpy.array
6
First
The Rows of Cakes
issuperset
hash
dataclass
dataclasses
dataclasses.dataclass
First
Moria Doors
Fraction
fractions.Fraction
fractions
intersection
values
functools
Weak Point
cmp_to_key
functools.cmp_to_key
functools.partial
partial
functools
HubSpot
First
Team Play
itertools.tee
tee
itemgetter
operator.itemgetter
operator
6
First
Between Markers (simplified)
split
str
Math way, no strings used
Number Length
math.log10
log10
math.ceil
ceil
math
3
First
Is Even
bool
int
1
First
Replace First
pop
typing.Iterable
Iterable
typing
append
1
First
Repeating Decimals
insert
f-string
index
while
str
First
Non Empty Lines
splitlines
strip
if-comprehension
list-comp
comprehension
oneliner
All Upper II
any
upper
isalpha
bool
inline-if
4
First
Even the Last
inline-if
sum
list
int
1
First
Second Index
index
None
if-comprehension
list-comp
comprehension
First
Remove All Before
index
typing.Iterable
Iterable
not
typing
2
evil eval
Restricted Sum
eval
map
lambda
join
str
First
Fizz Buzz
or
inline-if
int
str
if
1
First
Right to Left
tuple
replace
join
list-comp
comprehension
1
First
Stressful Subject
getattr
re.compile
compile
filter
isupper
First
Min and Max
get
None
sorted
True
len
First
Number Base
ascii_uppercase
string.ascii_uppercase
ValueError
string
enumerate
Blizzard
First
Useless Flights
math.inf
inf
class
heappush
heapq.heappush
12
itertools
Weekend Counter
filterfalse
itertools.filterfalse
itertools.takewhile
takewhile
itertools.count
First
Reversed Permutation Index
math.factorial
factorial
math.ceil
ceil
math
First
Permutation Index
math.factorial
factorial
Tuple
typing.Tuple
math
First
The First Working Day
datetime.strftime
strftime
datetime.strptime
strptime
datetime.timedelta
1
First
Unlucky Days
date
datetime.date
datetime
if-comprehension
list-comp
First
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
Rock
First
Write Quadratic Equation
from_iterable
itertools.from_iterable
itertools.zip_longest
zip_longest
chain
20
First
Rolling 🎲!
copy
values
pop
break
replace
First
Replace with Biggest
typing.Iterable
Iterable
max
typing
list-comp
First
Super Root
break
inline-if
while
elif
True
Shelter
First
Halloween Monsters
splitlines
combinations
itertools.combinations
extend
collections.Counter
15
1
hexagonal grid class
Landing Site
hash
typing.Set
Set
Ellipsis
class
didascalic
ADFGVX Cipher
cycle
itertools.cycle
isalnum
translate
dict-comp
min with key
The Nearest Square Number
math.floor
floor
math.sqrt
sqrt
math
First
Seven Segment
islower
upper
isupper
set
if-comprehension
First
Ghosts Age
continue
while
in
elif
append
Codeship
First
Magic with 5 cards
attrgetter
operator.attrgetter
class
operator
insert
3
First
Texas Referee
class
combinations
itertools.combinations
filter
as
11
1
it's the math baby
Probably Dice
scipy.special.comb
comb
scipy
sum
range
12
First
Eaten Go Stones
remove
pop
abs
sum
while
Integer partition
Unfair Dice
class
StopIteration
raise
dict-comp
min
First
Pearls in the Box
collections.namedtuple
namedtuple
collections.Counter
Counter
float
Hermit
First
Mono Captcha
dropwhile
itertools.dropwhile
eq
operator.eq
itertools.starmap
8
no strings
Integer Palindrome
break
bool
print
while
append
step by step
Fractions Addition
math.prod
prod
itertools.takewhile
takewhile
itertools.count
First
Count Consecutive Summers
itertools.takewhile
takewhile
itertools.count
itertools
lambda
Not On Map
First
Aggregate and Count
collections.defaultdict
defaultdict
dict
collections
print
First
Most Wanted Letter
collections.Counter
Counter
items
collections
isalpha