16
cheikhnamouna
2 19 23
1195/ 1445
Mouna
Last seen 1 year ago
Member for 5 years, 5 months, 18 days
Difficulty Normal
Missions (53) / Solutions (80)
Best solutions / Newest solutions
Initiation
tuple
Easy Unpack
tuple
16
1
len of set
All the Same
Any
typing.Any
List
typing.List
bool
all and check
All the Same
Any
typing.Any
all
List
typing.List
1
simple tuple
Easy Unpack
tuple
max and counter
The Most Frequent
collections.Counter
Counter
get
collections
max
Home
First
Sun Angle
abs
or
and
int
if
join and split
Morse Decoder
capitalize
join
split
comprehension
1
Sum and check
Pawn Brotherhood
chr
ord
set
or
sum
loop and count
Pawn Brotherhood
chr
ord
set
or
in
using slice
Even the Last
or
sum
1
First
Second Index
find
None
inline-if
int
str
1
using collections.Counter
Popular Words
collections.Counter
Counter
dict
items
collections
using datetime
Days Between
date
datetime.date
datetime
abs
copy, count and remove
Non-unique Elements
copy
remove
count
list
for
list difference
Non-unique Elements
count
if-comprehension
list-comp
list
comprehension
check count
Non-unique Elements
count
if-comprehension
list-comp
list
comprehension
1
filter
Non-unique Elements
filter
lambda
count
list
Join list and replace
Right to Left
replace
join
list-comp
comprehension
Electronic Station
recurse
Digits Multiplication
or
int
convert and multiply
Digits Multiplication
or
int
str
for
using stack
Brackets
find
pop
not
or
in
1
more efficient recursion for length and find sequence
Find Sequence
any
zip
enumerate
None
not
Using reduce and operator.mul
Digits Multiplication
mul
operator.mul
operator
functools.reduce
reduce
First
Find Sequence
any
zip
enumerate
None
if-comprehension
Without using a stack
Brackets
eval
join
while
if-comprehension
in
1
stack
Brackets
find
pop
in
elif
False
1
Scientific Expedition
two lines
Striped Words
re.split
itertools.product
product
all
itertools
product, split and count
Striped Words
re.split
itertools.product
product
all
itertools
Counter, sorted and most_common
The Most Wanted Letter
filter
collections.Counter
Counter
collections
isalpha
1
sorted
Absolute Sorting
tuple
abs
sorted
list
sorted and filter
The Most Wanted Letter
filter
isalpha
max
lower
count
1
O'Reilly
one liner
Median
float
List
typing.List
sort
typing
combine possible wins and check
Xs and Os Referee
filter
List
typing.List
zip
typing
map, sum and isinstance
Flatten a List
isinstance
map
not
inline-if
sum
2
reduce and recurse
Flatten a List
isinstance
functools.reduce
reduce
functools
not
Recursive function
Flatten a List
isinstance
not
list
for
if
Simple
Index Power
inline-if
list
int
len
1
check rows, columns and diagonals
Xs and Os Referee
List
typing.List
zip
typing
and
1
Simple
Median
float
List
typing.List
typing
inline-if
1
Incinerator
Simple
Multicolored Lamp
class
len
First
The Warriors
class
property
super
decorator
inline-if
Simple using indices to alternate
The Warriors
class
property
super
decorator
while
using cycle
The Warriors
cycle
itertools.cycle
class
next
property
alternate with index
The Warriors
class
property
super
decorator
while
1
Mine
string.ascii_lowercase and find
Caesar Cipher (encryptor)
ascii_lowercase
string.ascii_lowercase
string
find
inline-if
bin and count
Binary Count
bin
count
Ice Base
check all possible rectangles
Largest Rectangle in a Histogram
min
max
range
comprehension
len
map and join
Morse Encoder
map
lower
lambda
join
split
Simple
Reverse Roman Numerals
inline-if
while
in
groupby and max
Long Repeat
groupby
itertools.groupby
itertools
max
or
Brute force
Largest Rectangle in a Histogram
min
max
range
len
for
1
Simple
Roman Numerals
for
Simple
Morse Encoder
lower
join
comprehension
Simple count and max
Long Repeat
max
inline-if
for
1
len and count
Monkey Typing
set
lower
count
if-comprehension
in
1
max and count
Long Repeat
max
else
for
if
1
O(n) stack solution
Largest Rectangle in a Histogram
pop
max
not
or
inline-if
+Counter
Monkey Typing
collections.Counter
Counter
collections
set
lower
1
Alice In Wonderland
Simple
Long Non Repeat
add
set
max
range
else
Second
Long Non Repeat
ord
max
range
len
for
sliding intervals
Long Non Repeat
yield
enumerate
max
or
in
1
GitHub
Using regex
Long Repeat Inside
findall
re.findall
r-string
re
max
1
Another regex solution
Long Repeat Inside
findall
re.findall
r-string
re
max
Dropbox
divide and add
Numbers Factory
not
or
while
and
range
11
divide and join
Numbers Factory
map
break
not
join
while
iterate over substrings and check
The Longest Palindromic
divmod
list-comp
range
comprehension
len
PyCon TW
Find non overlapping substring starting from longest substring
Double Substring
combinations
itertools.combinations
filter
as
itertools
1
len, filter and all
House Password
filter
islower
all
isupper
isdigit
set and all
House Password
digits
string.digits
ascii_uppercase
string.ascii_uppercase
ascii_lowercase
simple check for all conditions
House Password
any
upper
isdigit
bool
lower
Count number of non overlapping occurrences
Double Substring
combinations
itertools.combinations
filter
as
itertools
Use re
House Password
re.compile
compile
re
None
bool
just check all conditions
House Password
any
upper
isdigit
bool
lower
1
Storage
zip and sum
Skew-symmetric Matrix
zip
map
sum
list
len
transpose and check
Skew-symmetric Matrix
all
zip
enumerate
list
comprehension
1
zip
Skew-symmetric Matrix
all
zip
comprehension
1
HubSpot
sum, map and zip
Number Base
ValueError
zip
map
except
try
recursion
Restricted Sum
inline-if
bin and count
The Hamming Distance
bin
count
for loop with try
Number Base
ValueError
except
try
int
str