23
Zhao Xin
https://www.haoohaoo.com
Last seen 1 year ago
Member for 10 years, 8 months, 24 days
Difficulty Normal
I love coding!
Initiation
A little trick is that Python treats boolean as 0/1 when it think so ...
Correct Sentence
18
15
1
Some tricks with max() function.
The Most Frequent
79
6
1
This should not be named as a task !!!
Easy Unpack
125
6
0
Second
Easy Unpack
158
5
0
First
All the Same
271
4
0
First
Correct Sentence
407
2
0
Clear that you have to have a look ;)
The Most Frequent
611
0
0
Second
The Most Frequent
722
0
0
Clear that you have to have a look ;)
Easy Unpack
969
0
0
Home
Seconds to Degrees
Sun Angle
3
6
1
Use re.search, but not re.findall.
First Word
7
30
3
string.find is better than string.index
Second Index
28
11
1
A string slicing operation, with the help from trinocular operator (三元运算符)
Between Markers
35
10
1
sorted, reverse, slicing, done!
Bigger Price
97
7
1
Use set() to make it speedy
Non-unique Elements
102
2
0
Learn some things more about time module.
Date and Time Converter
117
4
2
Clear that you do have to have a look ;)
Morse Decoder
128
4
0
Second
Three Words
145
13
3
Third
Even the Last
160
12
0
Second
Even the Last
165
0
0
First
Days Between
171
0
0
Second
Popular Words
200
4
1
First
Pawn Brotherhood
201
0
0
job can be considered as searching for '\D+ \D+ \D+'
Three Words
243
6
1
index_begin, index_end, done!
Between Markers
263
3
0
Looking for protector in dictionary.
Pawn Brotherhood
298
0
0
Second
Second Index
419
2
2
Clear that you don have to have a look ;)
Date and Time Converter
437
0
0
one-line
Even the Last
473
4
1
First
Three Words
795
0
0
datetime did it!
Sun Angle
797
0
0
First
Non-unique Elements
820
4
0
Clear that you have to have a look ;)
Popular Words
833
0
0
First
Even the Last
940
0
0
A simple but readable dictionary comprehension (字典解析式)
Popular Words
976
0
2
First, Second, OK!
Second Index
1060
0
0
re
First Word
1118
0
0
Clear that you have to have a look ;)
Bigger Price
1173
0
0
First
Right to Left
1559
0
0
Second
Non-unique Elements
2163
0
0
Third
Non-unique Elements
6393
0
0
Electronic Station
Second
Digits Multiplication
350
4
0
First
Find Sequence
514
0
0
First
Boolean Algebra
542
0
0
reduce() function is great for this task
Digits Multiplication
632
2
3
First
Verify Anagrams
705
0
0
First
Digits Multiplication
761
0
0
First
Brackets
815
0
0
Scientific Expedition
First
Bird Language
3
90
7
Why it is speed I think.
The Most Wanted Letter
21
4
0
First
I Love Python!
40
4
0
First
The Hidden Word
65
4
0
First
Morse Clock
93
0
1
Second
Call to Home
102
2
0
Second
Absolute Sorting
118
18
0
First
Conversion into CamelCase
126
4
0
I love Python!
I Love Python!
155
9
1
First
Letter Queue
155
0
0
How ease an array can be sorted with a key?
Absolute Sorting
228
7
1
Join all uppercase letters
Secret Message
246
6
1
First
Conversion from CamelCase
400
0
0
First
Call to Home
413
0
0
First
Time Converter (24h to 12h)
519
0
0
First
Common Words
568
0
0
First
Absolute Sorting
569
0
0
First
Striped Words
698
0
0
Clear that you do have to have a look ;)
Pangram
1257
0
1
First
Secret Message
1403
0
0
First
The Most Wanted Letter
1587
0
0
Second
The Most Wanted Letter
1588
0
0
Third
The Most Wanted Letter
2085
0
0
O'Reilly
Nice and Neat!
Xs and Os Referee
11
8
0
First
The Flat Dictionary
27
0
0
time module did it
Time Converter (12h to 24h)
88
3
0
First
Count Inversions
273
0
0
First
Xs and Os Referee
1179
0
0
try ... except ... makes jobs easier.
Index Power
1229
1
0
First
Index Power
1380
0
0
First
Loading Cargo
1449
0
0
First
Median
1469
0
0
Second
Index Power
4991
0
1
Incinerator
Just two more attack points!
The Warriors
2
16
0
First, I think it is clear :)
Army Battles
10
14
0
First
Dialogues
91
0
0
First
Every Person is Unique
108
0
0
First
Voice TV Control
113
0
0
平庸
The Warriors
131
0
0
First
Multicolored Lamp
183
1
1
First
Friends
709
0
0
Mine
str object has maketrans() and translate() functions, great!
Caesar Cipher (encryptor)
4
8
0
Just works
Chess Knight
10
0
0
Clear that you do have to have a look ;)
What Is Wrong With This Family?
66
2
1
Second
Best Stock
104
6
0
First
Moore Neighbourhood
126
0
0
f-sting makes it possible and neat in one line code done this job
Fizz Buzz
143
14
1
Second
Fizz Buzz
152
13
0
First
Cut Sentence
190
0
0
Since `sorted(dict, key=lambda x:dict[x])` can work, why not ...
Best Stock
203
4
0
Third
Fizz Buzz
224
7
1
Clear that you have to have a look ;)
Best Stock
341
2
0
First
The Greatest Common Divisor
365
0
0
I guess most of you did this the same.
The Greatest Common Divisor
366
0
0
Python Build-in Makes It Easy, Clear and Readable, text.translate(trans_table)
Caesar Cipher (encryptor)
399
0
0
4th
Fizz Buzz
438
3
2
First
Binary Count
595
0
0
First
Fizz Buzz
944
0
0
Ice Base
Second, with better understading the roman number, which I will keep it as a function.
Reverse Roman Numerals
28
6
0
Second
Long Repeat
30
1
0
Clear code with comment, enjoy :)
Reverse Roman Numerals
57
4
0
The most clear and hard solution!
Identify Block
66
0
1
First
Monkey Typing
106
1
2
So ease?
The Most Numbers
121
15
0
Third
The Most Numbers
184
8
0
Second
The Most Numbers
203
7
0
Third
Roman Numerals
235
0
0
First
Morse Encoder
267
0
2
First
Feed Pigeons
303
1
0
First
How to Find Friends
369
0
0
First !!!!!!!!!!!!!!!!!
Largest Rectangle in a Histogram
473
0
0
First
Roman Numerals
479
0
0
Second
Monkey Typing
651
1
0
First
The Most Numbers
734
0
0
First
Long Repeat
751
0
0
Second
Roman Numerals
1503
0
0
Alice In Wonderland
1.88400006294e-06s per call
The Shortest Knight's Path
1
15
4
First
The Shortest Knight's Path
3
3
0
First
When is Friday?
139
0
0
First
The Fastest Horse
162
0
0
First
Multiplication Table
259
0
1
First
Transposed Matrix
269
0
0
Second
Transposed Matrix
270
0
0
GitHub
First
Simplify Unix Path
21
0
0
Second
Create Intervals
51
4
0
First
Create Intervals
113
1
0
First
Merge Intervals
129
0
0
Clear that you do have to have a look ;)
Long Repeat Inside
135
0
0
First
The Most Frequent Weekdays
148
1
0
First
Area of a Convex Polygon
177
0
0
First, anything
Solution for Anything
302
0
0
First
The End of Other
530
0
0
First
Open Labyrinth
1090
0
1
Dropbox
Very Clear ~~~
Three Points Circle
44
4
3
First
Friendly Number
101
0
0
Clear that you do have to have a look ;)
Simple Hashlib
107
1
0
"--" bug corrected
Three Points Circle
147
0
0
Second
Friendly Number
206
0
0
First
Three Points Circle
209
0
0
First
Numbers Factory
255
0
0
First
Humpty Dumpty Form
350
0
0
Clear that you do have to have a look ;)
The Longest Palindromic
625
0
0
First
Speech Module
3143
0
0
PyCon TW
Clear that you do have to have a look ;)
Double Substring
37
4
0
Object Oriented
Network Attack
50
2
0
First
Robot Sort
52
0
0
First
Calculate Islands
116
0
0
First
Digit Stack
141
0
0
First
Golden Pyramid
165
0
0
First
Simple Areas
412
0
0
Clear that you do have to have a look ;)
Simple Areas
413
0
0
First
House Password
2526
0
0
Third
House Password
2891
0
0
Second
House Password
4455
0
0
Storage
First
Square Spiral
18
2
0
First
Playfair Cipher
23
1
0
First
Restricted Prime
23
0
0
AStar
Digging a Canal
29
0
0
First
Word Pattern
65
0
0
First
Weak Point
129
0
0
First ... just works
The Rows of Cakes
146
0
0
hash() and set() make unique lines
The Rows of Cakes
159
0
0
First
Skew-symmetric Matrix
185
2
0
First
Saw the Stick
323
0
1
HubSpot
First
Node Disconnected Users
125
0
0
So ease, int(str_number, base) ... try ... except ...
Number Base
378
3
0
First
The Hamming Distance
518
0
0
First
Number Base
535
0
0
First
Restricted Sum
620
0
0
Clear!
Restricted Sum
708
0
0
Second
Number Base
2969
0
1
Blizzard
Last
Spaceship Landing Strip
15
3
2
A solution using re module.
Stressful Subject
35
8
1
First
Radiation Search
67
0
0
First
The First Working Day
76
0
0
This is Levenshtein Distance!
String Conversion
133
0
0
Minimum Edit Distance - Levenshtein Distance!
String Conversion
134
0
0
Minimum Edit Distance - Levenshtein Distance! (min version)
String Conversion
135
0
0
First
Weekend Counter
217
0
0
First
Min and Max
252
0
0
First
The Angles of a Triangle
462
0
0
Rock
First
Berserk Rook
41
1
0
Shelter
First
ADFGVX Cipher
16
3
0
First
Ghosts Age
19
1
2
First
One line Drawing
25
0
0
Clear that you do have to have a look ;)
Completely Empty
61
1
0
Codeship
First
The Square Chest
19
6
3
Hermit
Last
Ore In The Desert
16
4
0
First
Ore In The Desert
40
0
0
First
Mono Captcha
42
0
0
First
Keywords Finder
43
0
0
First
The Good Radix
81
0
0
Watchtower
First
Rotate Hole
156
0
0
First
Funny Addition
248
1
0
Escher
一般般
The Ship Teams
19
1
0
大家觉得如何就如何吧...
Compass, Map and Spyglass
25
0
0
First Treasures Taken
Treasures
28
3
0
一气呵成
The Stone Wall
48
3
0
好似做贼...
Keys and Locks
50
0
0
不够完美
Ground for the House
53
0
0
果然是贼 ...
Safe Code
62
0
0
小修改
The Stone Wall
74
2
0
初步实现
The Secret Room
74
0
0
平面几何复习题
Wild Dogs
75
0
0
Second
Wild Dogs
76
0
0
再修改一下下
The Stone Wall
95
1
0