30
tigerhu3180
10 27 46
4681/ 5195
Last seen 2 months ago
Member for 6 years, 2 months, 16 days
Difficulty Normal
I live in Shanghai China. I work for BI business for almost one year and I start feeling bored on this job.I am interested in Python and AI. I would like to improve my Python skill and English....also, practice my brain at all. '闻道有先后,术业有专攻。'

Missions (262) / Solutions (267)
Best solutions / Newest solutions
Initiation
First
Between Markers (simplified)
find
str
3
1
First1
All the Same
Any
typing.Any
List
typing.List
bool
7
1
First
First Word (simplified)
split
str
First
End Zeros
break
int
str
for
if
First
All Upper I
upper
bool
str
First
The Most Frequent
count
and
for
if
First
Backward String
str
First
Multiply (Intro)
First
Correct Sentence
upper
str
if
First
Remove All Before
index
typing.Iterable
Iterable
typing
in
First
Acceptable Password I
bool
str
len
First
Easy Unpack
else
len
if
First
Nearest Value
min
abs
set
lambda
list-comp
First
Number Length
int
str
len
First
Split Pairs
inline-if
list-comp
range
comprehension
else
First
Is Even
bool
not
int
First
Beginning Zeros
int
str
len
if
First
Replace First
typing.Iterable
Iterable
typing
list
First
Max Digit
max
list
int
str
Home
First
Sort Array by Element Frequency
index
lambda
count
sorted
First
Days Between
date
datetime.date
datetime
abs
"Sun angle"
Sun Angle
inline-if
int
1
First
Between Markers
strip
find
elif
and
else
First
Date and Time Converter
re.split
r-string
format
re
inline-if
"Morse Decoder"
Morse Decoder
capitalize
join
list-comp
split
comprehension
First
Second Index
Exception
index
None
except
try
First
Bigger Price
pop
max
if-comprehension
append
list-comp
First
Pawn Brotherhood
chr
ord
break
in
list
"Popular Words" version2
Popular Words
update
replace
lower
split
for
First1
Even the Last
inline-if
sum
len
First
First Word
re.split
r-string
re
if-comprehension
list-comp
2
First
Right to Left
replace
join
First
Three Words
isalpha
False
True
split
else
First
Even the Last
math.ceil
ceil
math
inline-if
sum
First
Non-unique Elements
count
or
in
append
for
1
Electronic Station
First
Inside Block
round
min
None
max
count
"Unix Match. Part 1" version2
Unix Match. Part 1
re.compile
compile
r-string
format
re
"Unix Match. Part 1"
Unix Match. Part 1
escape
re.escape
re.compile
compile
r-string
1
First
Find Sequence
Exception
pass
except
try
set
First
Can You Pass?
pop
set
lambda
while
if-comprehension
1
"Brackets"
Brackets
values
keys
pop
or
inline-if
First
Boolean Algebra
elif
and
if
2
First
Surjection Strings
combinations
itertools.combinations
all
itertools
zip
First
Ascending List
typing.Iterable
Iterable
bool
set
typing
First
Verify Anagrams
all
isalpha
set
lower
count
First
Digits Multiplication
if-comprehension
list-comp
comprehension
int
str
Scientific Expedition
First
Common Words
sorted
join
if-comprehension
in
list-comp
First
Morse Clock
zfill
format
bin
enumerate
replace
2
"Call to Home"
Call to Home
math.ceil
ceil
values
keys
math
1
YAML. More Types
YAML. More Types
strip
dict
upper
continue
None
First
Caps Lock
upper
continue
inline-if
False
True
1
"Remove Accents"
Remove Accents
normalize
unicodedata.normalize
unicodedata
chr
all
2
First
Cipher Map
sorted
join
if-comprehension
list-comp
range
First
Pangram
all
upper
or
in
list-comp
2
First
Striped Words
re.split
upper
continue
re
break
"Conversion into CamelCase"
Conversion into CamelCase
upper
join
list-comp
split
comprehension
First
Follow Instructions
count
1
YAML. Simple Dict
YAML. Simple Dict
strip
dict
continue
isdigit
not
"Bird Language"
Bird Language
inline-if
while
in
else
if
"Time Converter (24h to 12h)"
Time Converter (24h to 12h)
inline-if
elif
int
str
if
First
I Love Python!
1
"Conversion from CamelCase"
Conversion from CamelCase
upper
None
lower
join
if-comprehension
First
The Hidden Word
splitlines
find
zip
enumerate
max
First
Letter Queue
join
in
append
split
else
First
Absolute Sorting
abs
lambda
sorted
2
First
Secret Message
upper
lower
if-comprehension
and
list-comp
First2
Cipher Map
sorted
join
if-comprehension
list-comp
range
First
The Most Wanted Letter
isalpha
set
lower
lambda
count
Second
Absolute Sorting
abs
sorted
O'Reilly
First
Determine the Order
index
set
not
sorted
join
1
First
Reverse Every Ascending
extend
dict-comp
sort
not
inline-if
1
"The Flat Dictionary"
The Flat Dictionary
setdefault
isinstance
dict
inline-if
and
First
Count Inversions
sum
if-comprehension
range
comprehension
len
3
First
How Deep
isinstance
tuple
max
for
if
First
Frequency Sorting
lambda
count
sorted
True
"Time Converter (12h to 24h)"
Time Converter (12h to 24h)
re.split
zfill
r-string
re
elif
First
Median of Three
typing.Iterable
Iterable
typing
sorted
append
"Flatten a list" using simple regex
Flatten a List
findall
re.findall
re
list-comp
comprehension
1
First
Median
sorted
else
int
len
if
2
First
Xs and Os Referee
or
and
range
for
if
First
Index Power
inline-if
len
Incinerator
First
Geometry Figures
math.tan
tan
math.radians
radians
class
14
First
Army Battles
class
super
remove
while
False
Second readable solution optimized based on my first one, hope you can read my code clearly
The Warlords
class
hasattr
super
copy
dict-comp
3
First
The Lancers
class
hasattr
super
remove
inline-if
1
First
The Weapons
class
hasattr
super
copy
remove
First
The Vampires
class
hasattr
super
remove
inline-if
First
Straight Fight
class
hasattr
super
copy
remove
First
Dialogues
class
format
None
inline-if
join
First
Party Invitations
class
format
remove
append
for
First
The Warlords
class
hasattr
super
copy
remove
First
Building Base
class
format
First
The Healers
class
hasattr
super
remove
inline-if
2
First
Hacker Language
class
chr
any
bin
find
"Capital City"
Capital City
class
append
len
if
First
Every Person is Unique
class
datetime.strptime
strptime
capitalize
datetime.datetime
First
Microwave Ovens
class
rjust
zfill
inline-if
elif
First
Army Units
class
format
inline-if
First
Friends
class
remove
set
if-comprehension
in
First
Voice TV Control
class
type
in
else
int
1
"3 Chefs"
3 Chefs
class
super
format
First
Text Editor
class
inline-if
append
2
First
The Defenders
class
hasattr
super
remove
inline-if
First
Multicolored Lamp
class
if
1
First
The Warriors
class
super
while
False
and
Mine
First(tested wrong)
Fast Train
pass
continue
pop
abs
sum
1
3
First (too slow, no recommend)
Bigger Together
itertools.permutations
permutations
itertools
min
max
First
Chess Knight
extend
chr
add
ord
set
"Achilles and the tortoise"
Achilles and the Tortoise
"Caesar cipher (decryptor)"
Caesar Cipher (decryptor)
rfind
find
enumerate
isalpha
abs
First
Can Balance
enumerate
typing.Iterable
Iterable
typing
lambda
"Currency Style"
Currency Style
re.split
findall
re.findall
re
replace
"The greatest common divisor"
The Greatest Common Divisor
all
any
set
not
inline-if
1
First
What Is Wrong With This Family?
copy
remove
inline-if
in
False
First
Cut Sentence
shorten
textwrap.shorten
textwrap
False
len
1
First(using BFS and lambda)
Disposable Teleports
collections.deque
deque
collections
isdigit
set
"Caesar cipher (encryptor)"
Caesar Cipher (encryptor)
rfind
find
enumerate
isalpha
abs
1
First
Moore Neighbourhood
or
if-comprehension
in
and
list-comp
First
Best Stock
values
max
if-comprehension
list-comp
comprehension
2
"Binary count"
Binary Count
bin
count
First
Fizz Buzz
inline-if
and
str
if
Ice Base
"Oil Pie"
Oil Pie
Fraction
fractions.Fraction
fractions
abs
inline-if
"Identify Block"
Identify Block
keys
None
sorted
for
if
First
How to Find Friends
add
remove
set
while
in
First (thanks to hints from Sim0000 on forum)
Making Change
min
None
inline-if
while
if-comprehension
"Morse Encoder"
Morse Encoder
lower
join
append
split
for
First
Reverse Roman Numerals
not
while
for
if
First
Find Quotes
finditer
re.finditer
zip
re
list-comp
First
Clock Angle
min
abs
inline-if
list-comp
split
First
Counting Tiles
all
any
map
lambda
while
First
Monkey Typing
find
lower
for
if
2
"Largest Rectangle in a Histogram"
Largest Rectangle in a Histogram
min
max
append
list-comp
range
1
First
Long Repeat
Exception
except
try
max
append
1
First
Feed Pigeons
inline-if
while
append
2
First
Roman Numerals
while
for
1
First
The Most Numbers
min
max
inline-if
len
Alice In Wonderland
"Middle Characters"
Middle Characters
inline-if
len
5
"The fastest horse"
The Fastest Horse
dict-comp
index
min
set
max
First
Swap Nodes
chain
itertools.chain
itertools
inline-if
list-comp
"When is Friday?"
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
inline-if
1
First
Zigzag Array
List
typing.List
typing
inline-if
sorted
First
The Shortest Knight's Path
itertools.product
product
chr
itertools
ord
First
IP Network: Route Summarization
ljust
zfill
bin
set
print
First
Digits Doublets
pop
or
while
and
append
First1
Long Non Repeat
find
max
append
else
len
2
First
Multiplication Table
bin
lambda
sum
append
list-comp
First
Transposed Matrix
List
typing.List
zip
typing
list-comp
GitHub
First
The Cheapest Flight
pop
min
inline-if
sum
while
14
2
First2
The Most Frequent Weekdays
date
datetime.date
datetime
or
sorted
16
First
Evenly Spaced Trees
any
List
typing.List
zip
min
First
Merge Intervals
functools.reduce
reduce
functools
set
lambda
First
Shooting Range
round
min
abs
max
elif
First
Create Intervals
sorted
append
range
list
len
3
First
Painting Wall
combinations
itertools.combinations
insert
itertools
remove
First
The Highest Building
dict-comp
items
zip
enumerate
max
First
Expand Intervals
chain
itertools.chain
itertools
typing.Iterable
Iterable
Second
Long Repeat Inside
update
filter
values
keys
enumerate
First
Cookies
join
if-comprehension
in
list-comp
split
First
The End of Other
False
and
True
len
for
First
Open Labyrinth
collections.deque
deque
keys
collections
List
Dropbox
First
Hubspot Amulet
numpy.linalg
linalg
numpy.array
array
collections.deque
2
1
First
Count Squares
math.degrees
combinations
itertools.combinations
degrees
math.acos
2
"Simple hashlib"
Simple Hashlib
bytes
hashlib.new
new
hashlib
12
First
The Longest Palindromic
add
set
max
inline-if
and
First
The Best Number Ever
"Numbers Factory"
Numbers Factory
break
join
while
append
range
"Worth of words"
Worth of Words
update
max
lambda
sum
comprehension
First
Speech Module
join
elif
else
int
if
"Three Points Circle"
Three Points Circle
findall
re.findall
format
round
index
1
First
Humpty Dumpty Form
math.cos
cos
math.sin
sin
math.log
1
First
Friendly Number
format
round
abs
inline-if
and
1
PyCon TW
"Digit Stack"
Digit Stack
pop
inline-if
in
elif
append
First
Ryerson Letter Grade
in
range
int
str
for
"Network Attack"
Network Attack
extend
filter
values
dict-comp
keys
First
Express Delivery
collections.deque
deque
dict-comp
keys
get
First
Double Substring
break
replace
max
count
inline-if
"Golden Pyramid" by using deque
Golden Pyramid
collections.deque
deque
collections
max
while
First (bubble sort)
Robot Sort
sorted
join
append
range
list
First
Calculate Islands
remove
abs
sorted
while
if-comprehension
2
"Simple Areas"
Simple Areas
math.pi
pi
math
sum
elif
1
First
House Password
upper
lower
or
inline-if
in
Storage
"Skew-symmetric matrix"
Skew-symmetric Matrix
all
if-comprehension
list-comp
range
comprehension
20
First
Hexagon Spiral
values
pop
abs
max
while
First
The Rows of Cakes
combinations
itertools.combinations
itertools
continue
set
First (using str.find )
Restricted Prime
find
while
False
True
else
1
First
Earth Distances
math.radians
radians
math.cos
cos
math.sin
First
Group Equal consecutive
dict-comp
items
not
inline-if
print
First
English to Braille Translator
isspace
chain
itertools.chain
zfill
keys
First
Square Spiral
keys
abs
not
while
in
First
Word Pattern
zfill
bin
isdigit
inline-if
join
First
Moria Doors
itertools.permutations
permutations
re.split
r-string
itertools
First
Saw the Stick
break
max
inline-if
sum
append
First
Weak Point
dict-comp
zip
enumerate
min
lambda
Maya
First(my strategy is to collect gems from near to far. It runs much faster than expected :D )
Inertia
clear
chain
itertools.chain
collections.deque
deque
11
HubSpot
First (first time have much confidence to put this solution in the speedy category)
Supply Line
chain
itertools.chain
collections.deque
deque
keys
1
"City's Happiness"
City's Happiness
filter
values
keys
remove
isalpha
4
First(TESTED WRONG)
Node Disconnected Users
keys
isalpha
set
inline-if
sum
3
First
Square Board
Tuple
typing.Tuple
dict-comp
enumerate
typing
First
Repeating Decimals
index
not
join
while
in
First
New Cities
isalpha
set
if-comprehension
in
append
First
Auto Painting
min
join
list-comp
range
list
Second
Node Disconnected Users
values
pop
sum
while
in
First
The Hamming Distance
zfill
bin
zip
sum
if-comprehension
"Restricted sum"
Restricted Sum
elif
else
len
if
2
First
Number Base
Exception
except
try
int
2
Blizzard
First
Useless Flights
chain
itertools.chain
combinations
itertools.combinations
float
First(using DFS)
Sudoku Solver
copy.deepcopy
deepcopy
copy
dict-comp
keys
5
First
Rectangles Union
zip
set
list-comp
range
list
First
The First Working Day
datetime.timedelta
timedelta
datetime.datetime
datetime
elif
First
Safe Coasts
itertools.product
product
any
itertools
remove
10
"String Conversion"
String Conversion
enumerate
pop
break
lambda
inline-if
"Weekend counter"
Weekend Counter
datetime.timedelta
timedelta
datetime
while
in
First
Radiation Search
remove
pop
set
max
lambda
"Stair steps" using deque
Stair Steps
collections.deque
deque
collections
max
while
First
Stressful Subject
any
isupper
isalpha
index
set
First
Min and Max
isinstance
dict-comp
float
get
items
First
Unlucky Days
datetime.strptime
zfill
strptime
datetime.datetime
format
First
The Angles of a Triangle
raise
math.degrees
degrees
math.acos
acos
Rock
First (using combinations)
Most Efficient Cutting
combinations
itertools.combinations
itertools
sum
sorted
8
First
Garland
combinations
itertools.combinations
update
itertools
set
20
"Black holes"
Black Holes
math.sin
sin
combinations
itertools.combinations
math.acos
First
Super Root
while
True
else
if
1
First
Berserk Rook
pop
min
set
max
lambda
"CheckSum"
CheckSum
ord
isalpha
isdigit
or
inline-if
1
"Parity Bit Generator"
Parity Bit Generator
chr
bin
count
join
if-comprehension
1
Shelter
First
Completely Empty
Exception
except
try
False
True
4
1
First
Climbing Route
functools.lru_cache
lru_cache
itertools.permutations
permutations
collections.deque
17
"ADFGVX Cipher"
ADFGVX Cipher
values
dict-comp
keys
zip
isalpha
"Seven Segment"
Seven Segment
combinations
itertools.combinations
values
islower
itertools
"The Nearest Square Number"
The Nearest Square Number
min
abs
lambda
while
True
First(practice for list slice)
Pattern Recognition
append
list-comp
range
comprehension
len
First
Ghosts Age
while
in
append
else
if
4
Codeship
"Eaten Go Stones"
Eaten Go Stones
remove
pop
inline-if
while
if-comprehension
14
"The square chest"
The Square Chest
extend
all
min
set
sorted
"Pearls in the box"
Pearls in the Box
float
round
replace
count
sum
Hermit
"Break Rings"
Break Rings
combinations
itertools.combinations
itertools
max
or
3
First
Fractions Addition
Fraction
fractions.Fraction
fractions
format
or
First
Colder-Warmer
random.choice
choice
random
itertools.product
product
what a mess!
Mono Captcha
clear
copy.deepcopy
deepcopy
copy
items
First
Count Consecutive Summers
break
count
append
range
for
Second
Count Consecutive Summers
break
lambda
or
sum
range
First
The Good Radix
enumerate
max
inline-if
while
list-comp
Watchtower
omg, what am i doing....
Broken Window
itertools.permutations
permutations
Tuple
typing.Tuple
set-comp
4
1
First
Bacteria Colonies
remove
pop
min
max
lambda
First
Vigenere Cipher
dict-comp
zip
enumerate
break
while
"Ethernet ring dimensioning"
Ethernet Ring Dimensioning
values
dict-comp
dict
find
min
"Rotate Hole"
Rotate Hole
insert
all
pop
set
append
First
Compare Functions
Exception
raise
is
None
except
First
Numbered Triangles
combinations
itertools.combinations
copy
dict-comp
keys
"Funny Addition"
Funny Addition
sum
Escher
First
Hypercube
heappush
heapq.heappush
heappop
heapq.heappop
heapq
6
1
First
Compass, Map and Spyglass
enumerate
abs
max
in
for
11
First
The Stones
all
inline-if
False
True
list-comp
16
1
First(hope you can understand what I am doing through my comment -- TO ME FROM THE FUTURE)
Card Game
set
max
sorted
and
append
1
First
Graphical Key
collections.deque
deque
yield
decorator
collections
First
The Tower
collections.Counter
Counter
collections
map
join
First
The Buttons
splitlines
strip
remove
enumerate
pop
First
Treasures
update
format
items
break
lambda
1
First
Keys and Locks
splitlines
strip
zip
enumerate
pop
First
Safe Code
startswith
re.split
eval
r-string
all
First
Wild Dogs
combinations
itertools.combinations
math.sqrt
sqrt
filter
First
The Secret Room
strip
index
lambda
sorted
while
1
First
Ground for the House
zip
min
max
if-comprehension
list-comp
1
First
The Stone Wall
filter
values
keys
enumerate
min
"The Ship Teams"
The Ship Teams
items
or
sorted
append
else