26
liw_80
7 24 42
3848/ 3945
Li Wei
Last seen 1 year ago
Member for 5 years, 5 months, 23 days
Difficulty Normal
Missions (224) / Solutions (198)
Best solutions / Newest solutions
Initiation
First
First Word (simplified)
split
str
6
First
Sum Numbers
isdigit
sum
if-comprehension
list-comp
split
First
Beginning Zeros
inline-if
int
str
len
1
First
Split Pairs
inline-if
list-comp
range
comprehension
len
First
Replace First
typing.Iterable
Iterable
typing
append
list
First
Correct Sentence
endswith
upper
inline-if
str
First
End Zeros
inline-if
while
and
int
2
First
Nearest Value
abs
break
set
inline-if
sorted
1
First
Number Length
int
str
len
First
Acceptable Password I
bool
inline-if
False
True
str
First
Count Digits
isdigit
if-comprehension
list-comp
comprehension
int
First
Easy Unpack
tuple
1
First
Max Digit
functools.reduce
reduce
functools
lambda
inline-if
First
Between Markers (simplified)
index
str
First
The Most Frequent
count
inline-if
list
str
for
First
Backward String
join
list-comp
range
comprehension
str
First
Remove All Before
index
typing.Iterable
Iterable
typing
inline-if
1
First
Is Even
bool
not
or
inline-if
False
Home
First
Sort Array by Element Frequency
lambda
count
sorted
if-comprehension
True
First
Right to Left
re.sub
sub
r-string
re
inline-if
First
Date and Time Converter
inline-if
split
str
First
Morse Decoder
capitalize
inline-if
join
list-comp
split
First
Bigger Price
dict-comp
items
lambda
sorted
append
First
Between Markers
find
inline-if
str
len
First
Backward Each Word
lstrip
join
list-comp
split
comprehension
1
First
Second Index
find
None
count
inline-if
int
Second
Second Index
find
None
count
inline-if
int
First
First Word
find
ord
lstrip
break
inline-if
First
Days Between
datetime.datetime
datetime
abs
First
Three Words
isalpha
bool
False
and
True
First
Even the Last
range
len
for
if
Electronic Station
First
Similar Triangles
Tuple
typing.Tuple
List
typing.List
bool
First
Unix Match. Part 1
match
re.match
re
replace
bool
First
Acceptable Password IV
re.search
search
re
bool
or
First
All Upper II
isupper
bool
str
First
Acceptable Password III
re.search
search
any
re
isdigit
2
First
Unix Match. Part 2
match
re.match
find
re
replace
First
Surjection Strings
values
dict-comp
keys
dict
zip
remove some redundancy
Surjection Strings
values
dict-comp
keys
dict
zip
First
Acceptable Password II
any
isdigit
bool
if-comprehension
and
First
Ascending List
typing.Iterable
Iterable
bool
typing
False
First
Verify Anagrams
lstrip
lower
inline-if
sorted
join
2
Scientific Expedition
First
Follow Instructions
count
4
2
First
Common Words
sorted
join
if-comprehension
in
list-comp
First
The Hidden Word
splitlines
find
break
replace
lower
First
Time Converter (24h to 12h)
inline-if
and
int
str
1
First
Pangram
chr
all
ord
lower
inline-if
First
Cipher Map
numpy.zeros
zeros
numpy.array
array
numpy
First
Conversion from CamelCase
isupper
replace
lower
inline-if
join
First
Letter Queue
inline-if
join
append
else
len
First
Caps Lock
upper
ord
replace
not
join
First
Sum by Type
Tuple
typing.Tuple
isinstance
tuple
typing
First
Goes Right After
find
bool
inline-if
and
str
First
Conversion into CamelCase
upper
elif
range
len
for
First
Bird Language
re.search
search
re
not
in
1
First
I Love Python!
First
Absolute Sorting
dict-comp
items
tuple
abs
lambda
O'Reilly
First
Flatten a List (iterator version)
iter
type
extend
is
inline-if
19
First
Majority
bool
count
False
True
list
First
How Deep
isinstance
continue
inline-if
else
int
1
First
The Flat Dictionary
isinstance
dict
items
inline-if
elif
First
Compress List
typing.Iterable
Iterable
typing
inline-if
append
First
Median of Three
min
typing.Iterable
Iterable
max
typing
First
Remove All After
index
typing.Iterable
Iterable
typing
inline-if
1
First
Chunk
typing.Iterable
Iterable
typing
append
range
First
Reverse Every Ascending
reverse
extend
continue
append
range
First
Time Converter (12h to 24h)
inline-if
elif
split
int
str
1
First
Frequency Sorting
dict-comp
items
set
lambda
count
First
Replace Last
typing.Iterable
Iterable
typing
list
First
Sort Except Zero
insert
typing.Iterable
Iterable
typing
sorted
First
Index Power
pow
inline-if
list
int
len
First
Median
float
List
typing.List
typing
inline-if
Incinerator
First
The Healers
class
property
super
type
decorator
15
Second
The Lancers
class
property
super
decorator
extend
16
1
First
Straight Fight
class
property
super
type
decorator
17
First
The Lancers
class
property
super
decorator
extend
First
Army Battles
class
super
extend
pass
pop
3rd
The Vampires
class
property
super
decorator
extend
First
Geometry Figures
class
math.pi
pi
round
math
1
First
Hacker Language
class
re.search
search
chr
r-string
First
Every Person is Unique
class
f-string
format
replace
inline-if
First
Dialogues
classmethod
class
decorator
None
lower
First
The Weapons
class
property
super
type
decorator
First
Voice TV Control
class
isinstance
inline-if
in
else
1
First
Text Editor
class
f-string
abs
inline-if
append
Second
The Vampires
class
property
super
decorator
extend
1
First
Multicolored Lamp
class
len
1
First
3 Chefs
class
super
f-string
First
The Vampires
class
property
super
decorator
extend
First
The Defenders
class
super
extend
pass
pop
First
Friends
class
issubset
union
add
remove
First
Building Base
class
str
Mine
First
Caesar Cipher (decryptor)
re.split
strip
chr
r-string
ord
5
First
Achilles and the Tortoise
First
What Is Wrong With This Family?
filter
zip
set
lambda
in
First
Domino Chain
extend
count
inline-if
list-comp
split
First
Moore Neighbourhood
not
sum
if-comprehension
and
list-comp
First
Best Stock
items
lambda
sorted
First
Binary Count
bin
count
int
str
2
First
Fizz Buzz
inline-if
int
str
Ice Base
First
Find Quotes
list-comp
split
range
comprehension
len
First
Making Change
min
None
inline-if
if-comprehension
append
First
Morse Encoder
strip
lower
inline-if
join
list-comp
1
First
Largest Rectangle in a Histogram
max
inline-if
range
len
for
First
Reverse Roman Numerals
while
in
and
else
len
First
Roman Numerals
First
The Most Numbers
min
max
inline-if
len
Alice In Wonderland
First
Flood Area
rfind
insert
find
typing.Iterable
break
9
First
Zigzag Array
List
typing.List
typing
inline-if
sorted
First
Tree Walker
isinstance
values
dict
continue
or
First
When is Friday?
inline-if
split
int
1
First
Swap Nodes
range
len
for
if
First
The Shortest Knight's Path
ord
continue
min
abs
or
1
First
Long Non Repeat
break
range
else
len
for
1
First
Transposed Matrix
List
typing.List
zip
typing
list-comp
First
Digits Doublets
clear
extend
remove
continue
break
First
Middle Characters
inline-if
len
First
Multiplication Table
bin
range
list
int
len
GitHub
First
Merge Intervals (generator version)
yield
is
pop
None
or
4
First
The End of Other
count
False
True
list-comp
list
First
Cookies
find
inline-if
len
First
Expand Intervals
typing.Iterable
Iterable
typing
list-comp
range
First
Power Supply
update
set-comp
add
items
set
First
Create Intervals
continue
break
sorted
append
range
First
Open Labyrinth
next
is
List
typing.List
typing
Dropbox
First
The Longest Palindromic
min
inline-if
join
while
list-comp
4
2
First
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
17
First
On the same path
typing.Union
Union
Tuple
typing.Tuple
isinstance
First
Simple Hashlib
hashlib.sha1
hashlib.sha224
hashlib.sha256
hashlib.sha384
hashlib.sha512
First
Speech Module
rstrip
or
inline-if
1
First
Worth of Words
lower
str
for
if
First
Friendly Number
round
abs
inline-if
while
and
First
Three Points Circle
round
replace
inline-if
split
int
First
Numbers Factory
min
count
while
and
append
PyCon TW
First
Double Substring
break
count
while
len
if
14
First
Building Visibility
break
lambda
inline-if
sorted
if-comprehension
First
Sum Consecutives
append
range
else
len
for
First
How Much Gold
Fraction
fractions.Fraction
fractions
dict-comp
items
First
Calculate Islands
List
typing.List
typing
sorted
and
First
Golden Pyramid
max
sum
while
and
append
First
Simple Areas
math.pow
pow
math.pi
pi
math.sqrt
Storage
First
Saw the Stick
clear
math.sqrt
sqrt
math
break
2
First
Playfair Cipher
isalnum
insert
sort
index
set
First
Square Spiral
divmod
math.ceil
ceil
math
abs
First
The Rows of Cakes
continue
break
count
False
and
First
Group Equal consecutive
clear
copy
not
or
inline-if
First
Word Pattern
isnumeric
all
bin
isalpha
or
First
Moria Doors
round
replace
set
max
lower
First
Skew-symmetric Matrix
False
True
range
len
for
First
Weak Point
functools.reduce
reduce
functools
filter
dict-comp
HubSpot
First
Next Birthday
Dict
typing.Dict
Tuple
typing.Tuple
date
16
1
First
New Cities
update
add
remove
set
inline-if
First
Weekly Calendar
time.strptime
time
strptime
datetime.timedelta
timedelta
First
City's Happiness
update
all
add
items
set
First
Repeating Decimals
map
inline-if
join
while
in
First
Non Empty Lines
strip
if-comprehension
list-comp
split
comprehension
First
Restricted Sum
len
if
First
Node Disconnected Users
values
add
set
inline-if
sum
Second
Node Disconnected Users
update
values
add
set
inline-if
First
Number Base
ord
inline-if
int
str
len
Blizzard
First
Connect Stars
Ellipsis
combinations
itertools.combinations
Tuple
typing.Tuple
First
Stressful Subject
re.I
I
re.compile
compile
findall
First
Weekend Counter
datetime.timedelta
timedelta
datetime
inline-if
sum
1
First
The First Working Day
calendar.weekday
weekday
calendar
datetime.timedelta
timedelta
First
Min and Max
TypeError
get
None
except
try
First
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
Rock
First
Home Coming
collections.Counter
Counter
values
collections
List
4
First
Park Benches
Tuple
typing.Tuple
List
typing.List
break
13
First
River Crossing
None
max
or
while
elif
18
First
Black Holes
math.sin
sin
math.acos
acos
math.pi
First
Sort by Removing
None
inline-if
append
range
list
First
Life Counter
insert
extend
any
zip
pop
First
Web Log Sessions
mktime
time.mktime
time.strptime
time
strptime
First
Berserk Rook
add
remove
index
None
abs
Shelter
First
Halloween Monsters
strip
all
replace
count
inline-if
12
1
First
The Nearest Square Number
inline-if
int
1
First
Seven Segment
issubset
set-comp
islower
upper
isupper
First
One line Drawing
copy
extend
dict-comp
pass
items
First
Pattern Recognition
find
break
inline-if
join
while
1
Codeship
First
Unfair Dice
copy
extend
None
inline-if
sum
First
Pearls in the Box
Fraction
fractions.Fraction
fractions
float
round
Hermit
First
Stacking Cubes
Tuple
typing.Tuple
copy
extend
remove
2
1
First
Fractions Addition
Fraction
fractions.Fraction
fractions
inline-if
sum
First
Count Consecutive Summers
break
elif
range
for
if
Watchtower
First
Ethernet Ring Dimensioning
values
index
break
inline-if
range
15
First
Rotate Hole
insert
pop
sum
append
list-comp
First
Funny Addition
sum
First
Vigenere Cipher
extend
chr
ord
zip
break
First
Numbered Triangles
copy
extend
filter
pass
remove
Escher
First
Compass, Map and Spyglass
abs
max
range
len
for
18
First
Ground for the House
rindex
index
min
max
inline-if
19
1
First
The Stone Wall
zip
lambda
count
sorted
True
1
First
The Secret Room
f-string
break
inline-if
print
elif
1
First
Treasures
f-string
items
break
lambda
sorted
First
Safe Code
eval
find
continue
index
replace
First
The Ship Teams
or
sorted
if-comprehension
list-comp
comprehension
First
Wild Dogs
items
round
break
lambda
inline-if