Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
bryukh: def checkio(*args): if args: # len(args) > 0 print(args[0]) for el in args: print(el) Work with it a...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
PashaCalinin: bryukh, do you know that u r genius?)
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
nickie: You're right but reviews are blind. When you review you don't know whose solution you're reviewing, ...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
nickie: Clear and readable, the style is fine with me. Still, sorry, I'd expect the best solution to be O(1)...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
veky: Tip, if you are curious: in difference to Haskell, you _can_ import and use something in Python in a...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
oduvan: "Harder, Better, Faster, Stronger" - Daft Punk "Harder, smaller, shorter" - Veky :)
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
delta14: Shouldn't it pass this one ? assert checkio('1234test') == '1.234test'
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
oduvan: sometimes it happens :)
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Amachua: No, the checker doesn't include all possible values, you cannot be 100% sure that your code is corre...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
bryukh: I used "union search" algorithm for it.
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
bryukh: If honestly you have not to prepare the binary empty matrix: binary_matrix = [] for row in data: tem...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
bryukh: Don't worry about brute force for the first version. Sometimes if i don't know the good algorithm fo...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
bryukh: I tried to draw it. I build histograms from solid columns.
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
Tiktin: For beginners I would recommend reading "Think Python - How to Think Like a Computer Scientist" by A...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
rupadhya: The two free books @ http://inventwithpython.com/ are interesting. One of them has the full implemen...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
rupadhya: Awesome visualizer for interactive python code. Checkout recursions. http://pythontutor.com/ .
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
bryukh: I converted the matrix to histograms and then used the algorithm from [here](http://blog.csdn.net/ar...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
9173860: it unpacks the args...take a look here..http://docs.python.org/2/tutorial/controlflow.html#unpacking...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
Bibiche: I would like to thank Bryukh, PositronicLlama, Bilou06, and so many others too : when I began with C...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
bryukh: The most simple brute-force is use itertools.combinations and check combinations with different leng...
|
May 13, 2014, 3:35 p.m. |
+ 1 |
for
Min & Max and More
|
Jan. 25, 2014, 7:20 a.m. |
+ 1 |
for Comment
veky: It works, only it's called range. :-D
|
Jan. 17, 2014, 3:31 p.m. |
+ 1 |
for Comment
bryukh: sites :)
|
Jan. 15, 2014, 10:12 p.m. |
+ 1 |
for Comment
bryukh: Online course.
|
Jan. 11, 2014, 6:45 a.m. |
+ 1 |
for Comment
bryukh: for i in range(len(data)):#Filling up the binary matrix with 0's and 1's for j in range(len(data[i])...
|
Jan. 11, 2014, 6:03 a.m. |
+ 1 |
for Comment
bryukh: yes
|
Jan. 10, 2014, 8:23 p.m. |
+ 2 |
for
camelCase-bryukh
|
Jan. 10, 2014, 6 p.m. |
+ 1 |
for Task
Spaceship Landing Strip
|
Jan. 9, 2014, 2:58 p.m. |
+ 1 |
for Post
Recommended books
|
Jan. 6, 2014, 7:45 a.m. |
+ 1 |
for Comment
bryukh: This is not mine, but more efficient and good readable.
|
Jan. 4, 2014, 9:12 a.m. |
+ 2 |
for
First-bryukh
|
Jan. 3, 2014, 10:56 a.m. |
+ 1 |
for
Thanks to PL-bryukh
|
Jan. 3, 2014, 10:37 a.m. |
+ 1 |
for
Shortest-veky
|
Jan. 3, 2014, 10:19 a.m. |
+ 1 |
for
Adjustment-veky
|
Jan. 3, 2014, 10:18 a.m. |
+ 1 |
for Comment
floord: "Oh well, never to satisfy everybody. :-D Just yesterday, I was arguing with a man who doesn't admit...
|
Dec. 31, 2013, 7:12 p.m. |
+ 2 |
for
Math-bryukh
|
Dec. 11, 2013, 1:46 p.m. |
+ 1 |
for Post
There is no point for this task
|
Nov. 3, 2013, 1:37 p.m. |
+ 1 |
for
First-Amachua
|
Nov. 3, 2013, 1:33 p.m. |
+ 1 |
for
Shortest-veky
|
Nov. 1, 2013, 12:57 p.m. |
+ 1 |
for
First-limon
|
Nov. 1, 2013, 2:37 a.m. |
+ 2 |
for
Ascending-veky
|
Oct. 31, 2013, 3:50 p.m. |
+ 1 |
for
First-bryukh
|
Oct. 28, 2013, 4:02 p.m. |
+ 1 |
for Comment
veky: I completely agree with you. I would also like you to note the fact that I am not your employee. ;-)...
|
Oct. 28, 2013, 4:02 p.m. |
+ 1 |
for Comment
JackSchneider: look briljant but is unreadable. If one of my employees did this to me he must look for an other job...
|
Oct. 28, 2013, 4:02 p.m. |
+ 1 |
for Comment
nptwz: unreadable
|
Oct. 28, 2013, 3:06 p.m. |
+ 1 |
for
First-dougall
|