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