Aug. 4, 2014, 5:29 p.m. |
+ 1 |
for Comment
guido: return approach.min_diff(stones) For extra points, you could run both solutions in parallel threads ...
|
Aug. 4, 2014, 5:28 p.m. |
+ 1 |
for Comment
guido: return 1 << (len(stones) - 1) This is probably better written as 2 ** (len(stones) - 1), so the read...
|
Aug. 4, 2014, 5:28 p.m. |
+ 1 |
for Comment
PositronicLlama: return 1 << (len(stones) - 1) Thanks for all the code review feedback! I appreciate the time you put...
|
Aug. 4, 2014, 5:28 p.m. |
+ 4 |
for
Dynamic Selection-PositronicLlama
|
Aug. 4, 2014, 4:42 p.m. |
+ 2 |
for
symetries-toufalk
|
Aug. 4, 2014, 4:39 p.m. |
+ 4 |
for
Triangle Wave-gyahun_dash
|
Aug. 4, 2014, 4:38 p.m. |
+ 1 |
for Comment
gyahun_dash: # Appendix (but longer than code) In this approach, numbers are converted to 2-D coordinates (x, y) ...
|
Aug. 4, 2014, 4:38 p.m. |
+ 1 |
for Comment
gyahun_dash: Incorrect: def saturate(signal, threshold): # threshold = period / 4 return max(-threshold, min(thre...
|
Aug. 4, 2014, 4:35 p.m. |
+ 4 |
for
First-baozhao123
|
Aug. 4, 2014, 4:07 p.m. |
+ 1 |
for
Decimal FTW-veky
|
Aug. 4, 2014, 4:05 p.m. |
+ 1 |
for Comment
Sim0000: Thank you. I wanted to know it!
|
Aug. 4, 2014, 4:05 p.m. |
+ 1 |
for Comment
gyahun_dash: return '{:.0f}'.replace('0', str(decimals)).format(number) + powers[e] + suffix You can use nested b...
|
Aug. 1, 2014, 6:49 p.m. |
+ 2 |
for
First-yttamer
|
Aug. 1, 2014, 6:39 p.m. |
+ 3 |
for
First-Shtucer
|
Aug. 1, 2014, 6:37 p.m. |
+ 1 |
for
First-autumnm1981
|
Aug. 1, 2014, 6:35 p.m. |
+ 1 |
for
First-gonflynn
|
July 31, 2014, 6:34 p.m. |
+ 1 |
for
First-Artem_Astashov
|
July 31, 2014, 6:23 p.m. |
+ 1 |
for
Straightforward-nickie
|
July 30, 2014, 6:02 p.m. |
+ 1 |
for
First-jjfPCSI1
|
July 30, 2014, 6 p.m. |
+ 1 |
for Comment
veky: "len(stack) != 0" is more simply written as just "stack" inside conditionals. Sequences can bool. :-...
|
July 30, 2014, 6 p.m. |
+ 1 |
for Comment
okiyama: if commands[i][1]=='U' is not very good readability. You're a lot better off with something like if ...
|
July 30, 2014, 6 p.m. |
+ 1 |
for Comment
Martin.N.Menendez: Thanks my friend. I cant use if "PUSH" in commands[i] because we send "PUSH i" with i=0,1,2,... I th...
|
July 30, 2014, 5:59 p.m. |
+ 1 |
for Comment
Talim42: elif 'POP' in cmd.upper() and len(stack) can be rewritten shorter: elif 'POP' in cmd and stack
|
July 30, 2014, 5:48 p.m. |
+ 1 |
for
First-lskukan
|
July 30, 2014, 5:47 p.m. |
+ 2 |
for
First-RuiLima
|
July 9, 2014, 4:59 p.m. |
+ 3 |
for
First-gwie
|
July 9, 2014, 4:54 p.m. |
+ 2 |
for
First-cbrunet
|
July 9, 2014, 4:51 p.m. |
+ 2 |
for
First-tobytobytoby
|
July 9, 2014, 4:50 p.m. |
+ 4 |
for
First-Sim0000
|
July 7, 2014, 4:26 p.m. |
+ 1 |
for Task
Verify Anagrams
|
July 7, 2014, 3:15 p.m. |
+ 1 |
for Task
The Hidden Word
|
July 7, 2014, 3:13 p.m. |
+ 1 |
for
First-dwarfjay
|
July 7, 2014, 3:11 p.m. |
+ 1 |
for
Saw the stick-reginn666
|
July 3, 2014, 10:47 p.m. |
+ 1 |
for Task
Saw the Stick
|
July 3, 2014, 6:46 p.m. |
+ 2 |
for
First-artur02
|
July 3, 2014, 6:31 p.m. |
+ 1 |
for
First-iafilatov
|
July 2, 2014, 8:42 p.m. |
+ 1 |
for
Engage 4 new missions and awesome video!
|
July 1, 2014, 9:12 p.m. |
+ 3 |
for
Minimized iterations, however not sure if data manipulations were optimal-ilpalazzo_sama
|
July 1, 2014, 8:04 p.m. |
+ 1 |
for
First-exoarn
|
July 1, 2014, 7:26 p.m. |
+ 2 |
for
First-eamq
|
July 1, 2014, 7:22 p.m. |
+ 1 |
for
First-bourbaka
|
July 1, 2014, 7:22 p.m. |
+ 1 |
for Comment
Amachua: Python 3.x way :) P.S. Why use tuple here? It works fine without it :)
|
July 1, 2014, 7:22 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Simple is better than complex.
|
July 1, 2014, 7:22 p.m. |
+ 1 |
for Comment
bryukh: "The list or tuple" I had tossed a coin and chose the tuple :-)
|
July 1, 2014, 7:21 p.m. |
+ 1 |
for Comment
bryukh: The coin does not think so ;-)
|
July 1, 2014, 7:16 p.m. |
+ 1 |
for Task
Absolute Sorting
|
July 1, 2014, 7:15 p.m. |
+ 1 |
for
First-shisashi
|
June 30, 2014, 10 p.m. |
+ 1 |
for
First-stephan233
|
June 30, 2014, 7:09 p.m. |
+ 2 |
for
First-zulqarnain
|
June 30, 2014, 6:59 p.m. |
+ 1 |
for
First-johndrunner
|
June 30, 2014, 6:44 p.m. |
+ 1 |
for
First-stephan233
|
June 30, 2014, 6:43 p.m. |
+ 1 |
for
First-wiking
|
June 30, 2014, 6:36 p.m. |
+ 2 |
for
Simple-zmorrissey_949d8fda10e64ba6927
|
June 30, 2014, 6:36 p.m. |
+ 2 |
for
First-Radu
|
June 30, 2014, 6:31 p.m. |
+ 1 |
for
First-angie
|
June 30, 2014, 6:30 p.m. |
+ 1 |
for
the_most_numbers-burizz
|
June 30, 2014, 6:28 p.m. |
+ 1 |
for
First-Dirk
|
June 30, 2014, 6:13 p.m. |
+ 3 |
for
Speedy-Cjkjvfnby
|
June 30, 2014, 6:13 p.m. |
+ 1 |
for Comment
odwl: Interesting way to get 0. Still very readable.
|
June 30, 2014, 6:07 p.m. |
+ 1 |
for
First-drBats
|
June 30, 2014, 6:07 p.m. |
+ 1 |
for
First-yesenin
|
June 30, 2014, 6:04 p.m. |
+ 2 |
for
First-Hanna_Hofman
|
June 27, 2014, 11:11 p.m. |
+ 1 |
for
First-Sim0000
|
June 27, 2014, 9:29 p.m. |
+ 1 |
for Comment
peter_parada: Thanks for advice, I appreciate it. Yeah I know about .join but maybe I am too lazy too use advanced...
|
June 27, 2014, 7:40 p.m. |
+ 1 |
for Task
Pearls in the Box
|
June 26, 2014, 6:39 p.m. |
+ 3 |
for
First-peter_parada
|
June 26, 2014, 5:36 p.m. |
+ 1 |
for Comment
Sim0000: Thank you!
|
June 26, 2014, 5:36 p.m. |
+ 1 |
for Comment
veky: Cool bool. :-D
|
June 26, 2014, 5:33 p.m. |
+ 1 |
for
First-jcg
|
June 26, 2014, 5:33 p.m. |
+ 1 |
for Comment
Cjkjvfnby: You can get alphabet : **from string import ascii_lowercase** No need to c.lower() it is already in ...
|
June 26, 2014, 5:30 p.m. |
+ 2 |
for
First-Kurush
|
June 26, 2014, 5:27 p.m. |
+ 1 |
for Post
The new simple text mission "Bird Language"
|
June 26, 2014, 5:27 p.m. |
+ 1 |
for Comment
bryukh: Because precondition is using for the advanced users, when they complain "wrong" solutions :-)
|
June 23, 2014, 6:32 p.m. |
+ 1 |
for Task
How to Find Friends
|
June 23, 2014, 6:19 p.m. |
+ 1 |
for
First-KarlSWE
|
June 23, 2014, 6:19 p.m. |
+ 1 |
for
Toadally clear-Faibbus
|
June 23, 2014, 5:59 p.m. |
+ 1 |
for
4th-Vladimir7
|
June 23, 2014, 3:06 p.m. |
+ 2 |
for
Strong Password-SuperDave1342_e7c9d7c4f1784f3c
|
June 23, 2014, 3:05 p.m. |
+ 1 |
for Comment
atrioom: i like "c.isalpha()" had to import "re" for this...
|
June 23, 2014, 3:04 p.m. |
+ 1 |
for Comment
martinbetz: I like how you make sure that you get the first letter when two letters have the same occurance with...
|
June 23, 2014, 3:04 p.m. |
+ 1 |
for
for_If_If-pythonist
|
June 20, 2014, 4:29 p.m. |
+ 1 |
for Comment
Renelvon: I agree it is not correct (for a correct solution, see my code snippet in the comments). I disagree ...
|
June 20, 2014, 4:29 p.m. |
+ 1 |
for Comment
badbird: if the password is '+++++++++++',it also return True, but it is a wrong answer.
|
June 20, 2014, 4:28 p.m. |
+ 1 |
for Comment
DanielDou: No problem. :)
|
June 20, 2014, 4:28 p.m. |
+ 1 |
for Comment
DanielDou: This is very clever code. :) Gave you a thumbs up! But the flaw in it seems you can bypass those con...
|
June 20, 2014, 4:28 p.m. |
+ 1 |
for Comment
Renelvon: Indeed! I need to filter symbols out before applying the test, but I need to reintroduce them when c...
|
June 20, 2014, 4:27 p.m. |
+ 1 |
for Comment
bryukh: This is original and interesting solution, but is not "Clear" for newbies. I would give you thumbsUp...
|
June 18, 2014, 5:29 p.m. |
+ 2 |
for
First-samulih
|
June 18, 2014, 5:26 p.m. |
+ 2 |
for
First-hamukazu
|
June 18, 2014, 4:25 p.m. |
+ 1 |
for Comment
bryukh: It's an interesting reading. Thank you for the solution (I saved it for weekend) and for this commen...
|
June 18, 2014, 4:25 p.m. |
+ 1 |
for Comment
macfreek: I just might have gotten a bit carried away here in my desire to solve this in linear time instead o...
|
June 18, 2014, 4:22 p.m. |
+ 1 |
for Comment
macfreek: Thanks, good feedback. The reason to add these corner cases, even though they are not required is th...
|
June 18, 2014, 4:22 p.m. |
+ 1 |
for Comment
Cjkjvfnby: no: **if len(args) == 0:** yes: **if not args:** You handle conner cases and raises exception, but d...
|
June 18, 2014, 4:20 p.m. |
+ 1 |
for Comment
macfreek: Yup, I noticed later, while examining the other solutions. Thanks for your explicit insight. This he...
|
June 18, 2014, 4:19 p.m. |
+ 2 |
for
With exceptions too-macfreek
|
June 18, 2014, 3:39 p.m. |
+ 2 |
for
short + easy_to_understand (9th_solved)-Ugen
|
June 18, 2014, 3:37 p.m. |
+ 1 |
for
First-hidekih
|
June 18, 2014, 3:35 p.m. |
+ 1 |
for
First-benyoub
|
June 18, 2014, 3:35 p.m. |
+ 1 |
for
First-JulianNicholls
|
June 17, 2014, 6:47 p.m. |
+ 1 |
for
First-MaartenDeRijk
|