Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on nickie: Oops... assert checkio([2,6,8]) == 0, 'triangle but not aligned!' |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Oops... assert checkio([2,6,8]) == 0, 'triangle but not aligned!' |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: OK, this means that hashing when using dicts in Python (more precisely, all the defaultdict machiner... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on nickie: OK, this means that hashing when using dicts in Python (more precisely, all the defaultdict machiner... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: This problem is much harder than it first looks. Not because it's hard to find a winning strategy fo... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment SlimeT: 1 on nickie: Instead of keeping a "flag" in your "mark" function, why don't you just return when you find a diffe... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment SlimeT: 1 on nickie: Instead of keeping a "flag" in your "mark" function, why don't you just return when you find a diffe... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment veky: 1 on nickie: OK, this means that hashing when using dicts in Python (more precisely, all the defaultdict machiner... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment veky: 1 on nickie: OK, this means that hashing when using dicts in Python (more precisely, all the defaultdict machiner... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: And [this](http://www.checkio.org/mission/implementation/python-3/26680/#comment-outer-5909) was the... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on nickie: You're right. Here's a one-liner in Python that works, more or less, in the same way as my Haskell o... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: You're right. Here's a one-liner in Python that works, more or less, in the same way as my Haskell o... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on nickie: Each insertWith makes a new map, but it's not an entire copy. Maps are balanced trees: the path from... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Each insertWith makes a new map, but it's not an entire copy. Maps are balanced trees: the path from... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on nickie: As you and @Veky are fond of one-liners, here's a one-liner for this in **Haskell** (plus two extra ... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: As you and @Veky are fond of one-liners, here's a one-liner for this in **Haskell** (plus two extra ... |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment veky: 1 on nickie: You're right. Here's a one-liner in Python that works, more or less, in the same way as my Haskell o... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment veky: 1 on nickie: You're right. Here's a one-liner in Python that works, more or less, in the same way as my Haskell o... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Yes, you're right, my mistake. I thought max was iterating over the text; it's iterating over the 26... |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on nickie: Yes, you're right, my mistake. I thought max was iterating over the text; it's iterating over the 26... |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on nickie: Short code but very inefficient. This is O(n^2) instead of O(n). |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Short code but very inefficient. This is O(n^2) instead of O(n). |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment Juge_Ti: 1 on nickie: This uses the fact that in an arithmetic system with base k, a number is divisible by k-1 if and onl... |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment Juge_Ti: 1 on nickie: This uses the fact that in an arithmetic system with base k, a number is divisible by k-1 if and onl... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment aggelgian: 1 on nickie: Explanation: 1. **remove** removes the first occurrence of 'x' from 's', assuming that there exists ... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment cbrunet: 1 on nickie: I'm sorry to find out that your solution needs more than 7 rounds for some test cases. Exhaustive te... |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment cbrunet: 1 on nickie: I'm sorry to find out that your solution needs more than 7 rounds for some test cases. Exhaustive te... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: I trust nothing about Python will puzzle you anymore, my friend... :-) |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment veky: 1 on nickie: Nice slicing... |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment veky: 1 on nickie: Nice slicing... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment Uladzimir: 1 on nickie: Well done. Using [itertools.permutations](http://docs.python.org/3/library/itertools.html#itertools.... |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment Uladzimir: 1 on nickie: Well done. Using [itertools.permutations](http://docs.python.org/3/library/itertools.html#itertools.... |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment veky: 1 on nickie: I trust nothing about Python will puzzle you anymore, my friend... :-) |
Nov. 23, 2017, 1:39 p.m. |
+5 |
Experience for appreciated comment htamas: 1 on nickie: I'm happy to say that this solution passes the exhaustive check. Very well done! It's definitely slo... |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment htamas: 1 on nickie: I'm happy to say that this solution passes the exhaustive check. Very well done! It's definitely slo... |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment htamas: 1 on nickie: I'm sorry to find out that your solution needs more than 7 rounds for some test cases. Exhaustive te... |
Nov. 23, 2017, 1:39 p.m. |
+5 |
Experience for appreciated comment htamas: 1 on nickie: I'm sorry to find out that your solution needs more than 7 rounds for some test cases. Exhaustive te... |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment aggelgian: 1 on nickie: As you notice, for even-length lists there are two independent calls to select from checkio. This wa... |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: I'm sorry to find out that your solution needs more than 7 rounds for some test cases. However, as i... |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: Oops, it seems that you're losing just these two moves: assert checkio("b2-a1") == 4, "to lower-left... |
Nov. 23, 2017, 1:39 p.m. |
+5 |
Experience for appreciated comment SlimeT: 1 on nickie: It's not a matter of functional style or not. It's a matter of various iterator/sequence types. And ... |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment SlimeT: 1 on nickie: It's not a matter of functional style or not. It's a matter of various iterator/sequence types. And ... |
Nov. 23, 2017, 1:39 p.m. |
+5 |
Experience for appreciated comment Renelvon: 1 on nickie: It's not a matter of functional style or not. It's a matter of various iterator/sequence types. And ... |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment Renelvon: 1 on nickie: It's not a matter of functional style or not. It's a matter of various iterator/sequence types. And ... |
Nov. 23, 2017, 1:38 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: For a decrypted version, check my [other solution](http://www.checkio.org/mission/number-factory/pub... |
Nov. 23, 2017, 1:38 p.m. |
+1 |
Experience for voted comment aggelgian: 1 on nickie: I prefer "mus"[::-1] :-) |
Nov. 23, 2017, 1:38 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: I suppose you mean that the following two assertions in the solution template are wrong: assert chec... |
Nov. 23, 2017, 1:38 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: I think you're misinterpreting the task description (I'm not blaming you, as it's not particularly w... |
Nov. 23, 2017, 1:38 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: As you notice, for even-length lists there are two independent calls to select from checkio. This wa... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Well done. Check the other solutions, you'll find some based on topological sorting (like that of [h... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment SlimeT: 1 on nickie: Here's what you get from a compilers' course... :-) |
Nov. 23, 2017, 1:37 p.m. |
+5 |
Experience for appreciated comment SlimeT: 1 on nickie: Here's what you get from a compilers' course... :-) |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: So, I was wondering why [Wolfram MathWorld](http://mathworld.wolfram.com/Spheroid.html) was giving a... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment bunnychai: 1 on nickie: An explanation of this solution is in the attached PDF file. The motivation for writing this came wh... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: An explanation of this solution is in the attached PDF file. The motivation for writing this came wh... |
Nov. 23, 2017, 1:37 p.m. |
+5 |
Experience for appreciated comment oduvan: 1 on nickie: Once more, well done! It was obvious that an O(N) dynamic programming solution was possible, but it ... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: Once more, well done! It was obvious that an O(N) dynamic programming solution was possible, but it ... |
Nov. 23, 2017, 1:37 p.m. |
+5 |
Experience for appreciated comment bunnychai: 1 on nickie: Once more, well done! It was obvious that an O(N) dynamic programming solution was possible, but it ... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment bunnychai: 1 on nickie: Once more, well done! It was obvious that an O(N) dynamic programming solution was possible, but it ... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Well, you're obviously right. And I obviously haven't coded enough in Python... :-) |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Right. I tend to use spaces when the formula looks too complicated otherwise. I changed the names to... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: This solution simply takes all combinations of three points. In case they are colinear, it checks to... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: My solution is based on [Church numerals](http://en.wikipedia.org/wiki/Church_encoding). Functions c... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: This is a fixed version of my [first solution](http://www.checkio.org/mission/colder-warmer/publicat... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: What you have here is an awesome solution; well done! I believe that you need 9 steps (also counting... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment kvas: 1 on nickie: I second the suggestion to support other languages. My team at NTUA have already contacted CheckIO a... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: I second the suggestion to support other languages. My team at NTUA have already contacted CheckIO a... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: I second the suggestion to support other languages. My team at NTUA have already contacted CheckIO a... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment htamas: 1 on nickie: A nice one, well done. More or less what I did except for the numeric encoding, the call to "replace... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment htamas: 1 on nickie: A nice one, well done. More or less what I did except for the numeric encoding, the call to "replace... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Juge_Ti: 1 on nickie: For anyone interested in an explanation of this solution, see [my comment](http://www.checkio.org/mi... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Juge_Ti: 1 on nickie: I believe we have the same algorithm with a few rather technical differences, affecting performance ... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Juge_Ti: 1 on nickie: I believe we have the same algorithm with a few rather technical differences, affecting performance ... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: For anyone interested in an explanation of this solution, see [my comment](http://www.checkio.org/mi... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: This requires O(N^2) time and has to go all the way. Sorry, but I don't think it should be the top v... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment veky: 1 on nickie: Still shorter than mine, by some 25%. But this time I won't try to decrypt it... :-) |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment veky: 1 on nickie: Still shorter than mine, by some 25%. But this time I won't try to decrypt it... :-) |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: For anyone interested in an explanation of this solution, see [my comment](http://www.checkio.org/mi... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment oduvan: 1 on nickie: I believe we have the same algorithm with a few rather technical differences, affecting performance ... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: I believe we have the same algorithm with a few rather technical differences, affecting performance ... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: This is the easiest way to do it but, if you fetch the CLR book from the shelf, you can compute the ... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Sorry, but I agree with Pavlo and veky. I can't believe that the current top-voted solution uses bli... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment oduvan: 1 on nickie: Church just turned upside-down in his tomb... The Pythonic interpretation to λ-calculus! |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment Juge_Ti: 1 on nickie: Using a priority queue would reduce both execution time and the verbosity of your code quite dramati... |
Nov. 23, 2017, 1:33 p.m. |
+5 |
Experience for appreciated comment Juge_Ti: 1 on nickie: Using a priority queue would reduce both execution time and the verbosity of your code quite dramati... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Here's a decryption of veky's solution, for anyone interested to study it: from itertools import per... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: Explanation: 1. **remove** removes the first occurrence of 'x' from 's', assuming that there exists ... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: I suspect that this will be the top voted solution, so my two cents will go here. For this problem I... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment DiEvAl_0d0e0434e59e45f68684d0e: 1 on nickie: Well, "globals" and "builtins" should be added to the list of forbidden words... :-) But then again,... |
Nov. 23, 2017, 1:33 p.m. |
+5 |
Experience for appreciated comment DiEvAl_0d0e0434e59e45f68684d0e: 1 on nickie: Well, "globals" and "builtins" should be added to the list of forbidden words... :-) But then again,... |
Nov. 23, 2017, 1:32 p.m. |
+1 |
Experience for voted comment bryukh: 1 on nickie: This solution is a simple **recursive DFS** and it would be much easier to understand if it was writ... |
Nov. 7, 2017, 6:28 p.m. |
+1 |
Experience for voted comment Sedov: 1 on nickie: An explanation of this solution is in the attached PDF file. The motivation for writing this came wh... |
Nov. 5, 2017, 3:44 a.m. |
+1 |
Experience for voted solution raymondchan.sl: 1 on String arithmetic-nickie |
Nov. 4, 2017, 9:42 p.m. |
+1 |
Experience for voted solution greymipt: 1 on Ignalion's twist-nickie |
Nov. 4, 2017, 3:08 p.m. |
+1 |
Experience for voted solution zhongyanjie: 1 on Deja vu-nickie |
Nov. 1, 2017, 10:35 p.m. |
+2 |
Experience for voted solution lsk45: 2 on Straightforward-nickie |
Nov. 1, 2017, 10:10 p.m. |
+2 |
Experience for voted solution lsk45: 2 on String arithmetic-nickie |
Nov. 1, 2017, 3:19 p.m. |
+1 |
Experience for voted solution suni2131: 1 on String arithmetic-nickie |
Oct. 28, 2017, 10:19 a.m. |
+1 |
Experience for voted solution Seon_Kyeong_Sim: 1 on String arithmetic-nickie |
Oct. 27, 2017, 4:57 p.m. |
+2 |
Experience for voted solution weirdquark: 2 on String arithmetic-nickie |