March 27, 2015, 2:05 p.m. |
+1 |
Experience for voted comment Peter.White: 1 on suic: Hi, instead of lines 2, 4-6 you can write this: return sum(word in ltext for word in words) |
March 27, 2015, 1:11 p.m. |
+13 |
Experience for voted solution capybara23: 2 on Py2.7 one-liner using cmp()-suic |
March 27, 2015, 1:05 p.m. |
+1 |
Experience for voted comment capybara23: 1 on suic: Hi, 1. Last if is redundant: return cmp(w1, w2) == 0 # or even: return not cmp(w1, w2) 2. __str__ is... |
March 27, 2015, 1:05 p.m. |
+5 |
Experience for appreciated comment capybara23: 1 on suic: Hi, 1. Last if is redundant: return cmp(w1, w2) == 0 # or even: return not cmp(w1, w2) 2. __str__ is... |
March 27, 2015, 1:04 p.m. |
+5 |
Experience for appreciated comment capybara23: 1 on suic: What a cascade :) |
March 27, 2015, 1:04 p.m. |
+1 |
Experience for voted comment capybara23: 1 on suic: What a cascade :) |
March 27, 2015, 1:03 p.m. |
+5 |
Experience for appreciated comment capybara23: 1 on suic: Hi, 1. ";" is unnecessary. 2. Do not reinvent the wheel: Look at [_str.join()_](https://docs.python.... |
March 27, 2015, 1:03 p.m. |
+1 |
Experience for voted comment capybara23: 1 on suic: Hi, 1. ";" is unnecessary. 2. Do not reinvent the wheel: Look at [_str.join()_](https://docs.python.... |
March 27, 2015, 12:38 p.m. |
+15 |
Experience for solved mission Verify Anagrams |
March 26, 2015, 7:26 p.m. |
+1 |
Experience for voted solution Polyarnik: 1 on One-liner variation-suic |
March 26, 2015, 3:11 p.m. |
+5 |
Experience for solved mission Absolute Sorting |
March 26, 2015, 11:50 a.m. |
+17 |
Experience for voted solution VickZVD: 3 on Refactored-suic |
March 26, 2015, 10:28 a.m. |
+15 |
Experience for solved mission Boolean Algebra |
March 26, 2015, 4:58 a.m. |
+4 |
Experience for voted solution stclair.daniel_f70a54fff4764c4: 2 on Using deque-suic |
March 25, 2015, 6:28 p.m. |
+5 |
Experience for solved mission Skew-symmetric Matrix |
March 25, 2015, 4:30 p.m. |
+7 |
Experience for voted solution medve: 1 on First-suic |
March 21, 2015, 2:58 p.m. |
+6 |
Experience for voted solution medve: 1 on First-suic |
March 19, 2015, 11:03 p.m. |
+5 |
Experience for appreciated comment hanpari: 1 on suic: Whatabout: Veky is an algorithm (or machine) turning šlivovica into Python code? :D (When I read the... |
March 19, 2015, 11:03 p.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: Whatabout: Veky is an algorithm (or machine) turning šlivovica into Python code? :D (When I read the... |
March 19, 2015, 9:36 p.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: F# is also an interesting option. I would like to see Clojure :) In general: I have to say that I'm ... |
March 19, 2015, 5:26 p.m. |
+1 |
Experience for voted comment JohnScira: 1 on suic: Hi, 1. You don't need == True as _str.isupper()_ return True 2. Look at _str.join()_ and _generator ... |
March 19, 2015, 5:26 p.m. |
+5 |
Experience for appreciated comment JohnScira: 1 on suic: Hi, 1. You don't need == True as _str.isupper()_ return True 2. Look at _str.join()_ and _generator ... |
March 19, 2015, 5:25 p.m. |
+5 |
Experience for appreciated comment JohnScira: 1 on suic: Hi, 1. You don't need == 1 checks 2. You can replace == 0 with _not_. |
March 19, 2015, 5:25 p.m. |
+1 |
Experience for voted comment JohnScira: 1 on suic: Hi, 1. You don't need == 1 checks 2. You can replace == 0 with _not_. |
March 19, 2015, 4:05 p.m. |
+2 |
Experience for voted solution filip.tuhy: 1 on A redundant 0 removed :)-suic |
March 19, 2015, 2:06 p.m. |
+1 |
Experience for voted comment mlb00: 1 on suic: Hi @bryukh. The "print instead of return" is one of the most common mistakes made by newbies. I real... |
March 18, 2015, 9:06 p.m. |
+2 |
Experience for voted solution BenjaminLush: 1 on One-liner variation-suic |
March 18, 2015, 2:50 p.m. |
+5 |
Experience for appreciated comment hanpari: 1 on suic: Hi, I'm glad to hear that my comments were useful :) If you like/don't like them can you rate them w... |
March 18, 2015, 2:50 p.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: Hi, I'm glad to hear that my comments were useful :) If you like/don't like them can you rate them w... |
March 18, 2015, 1:46 p.m. |
+2 |
Experience for voted solution mlb00: 1 on Another one-liner-suic |
March 18, 2015, 11:39 a.m. |
+5 |
Experience for appreciated comment dronnix: 1 on suic: Hi, you can use int.\_\_add\_\_ instead of lambda or you can: import operator return functools.reduc... |
March 18, 2015, 11:39 a.m. |
+1 |
Experience for voted comment dronnix: 1 on suic: Hi, you can use int.\_\_add\_\_ instead of lambda or you can: import operator return functools.reduc... |
March 18, 2015, 7:29 a.m. |
+2 |
Experience for voted solution spoty: 1 on spoty's shortened-suic |
March 17, 2015, 11:01 p.m. |
+5 |
Experience for appreciated comment Japijapo: 1 on suic: Hi, you're correct that the _count_ variable is changing in every iteration. On the other hand: Once... |
March 17, 2015, 11:01 p.m. |
+1 |
Experience for voted comment Japijapo: 1 on suic: Hi, you're correct that the _count_ variable is changing in every iteration. On the other hand: Once... |
March 17, 2015, 11:01 p.m. |
+5 |
Experience for appreciated comment Japijapo: 1 on suic: Hi, I'm glad to hear that my comments were useful :) If you like/don't like them can you rate them w... |
March 17, 2015, 11:01 p.m. |
+1 |
Experience for voted comment Japijapo: 1 on suic: Hi, I'm glad to hear that my comments were useful :) If you like/don't like them can you rate them w... |
March 17, 2015, 10:09 p.m. |
+1 |
Experience for voted comment lukas.linhart: 1 on suic: This could be a nice one-liner :) |
March 17, 2015, 10:09 p.m. |
+5 |
Experience for appreciated comment lukas.linhart: 1 on suic: This could be a nice one-liner :) |
March 17, 2015, 7:16 p.m. |
+8 |
Experience for solved mission Number Guess |
March 17, 2015, 1:58 p.m. |
+1 |
Experience for voted comment AaronCritchley: 1 on suic: Hi, I agree that it is simple, but generator expressions and list comprehensions are faster than for... |
March 17, 2015, 1:58 p.m. |
+5 |
Experience for appreciated comment AaronCritchley: 1 on suic: Hi, I agree that it is simple, but generator expressions and list comprehensions are faster than for... |
March 17, 2015, 10:54 a.m. |
+1 |
Experience for voted comment lyubenski: 1 on suic: Hi, you can do it without _re_. [_filter()_](https://docs.python.org/3/library/functions.html?highli... |
March 17, 2015, 10:54 a.m. |
+5 |
Experience for appreciated comment lyubenski: 1 on suic: Hi, you can do it without _re_. [_filter()_](https://docs.python.org/3/library/functions.html?highli... |
March 17, 2015, 9:55 a.m. |
+1 |
Experience for voted comment AaronCritchley: 1 on suic: Hi, you can omit the parentheses around conditions. |
March 17, 2015, 9:55 a.m. |
+5 |
Experience for appreciated comment AaronCritchley: 1 on suic: Hi, you can omit the parentheses around conditions. |
March 17, 2015, 9:49 a.m. |
+1 |
Experience for voted comment AaronCritchley: 1 on suic: Hi, Empty array is treated as false, so you can write: if not array: return 0 And also: array[0::2] ... |
March 17, 2015, 9:49 a.m. |
+5 |
Experience for appreciated comment AaronCritchley: 1 on suic: Hi, Empty array is treated as false, so you can write: if not array: return 0 And also: array[0::2] ... |
March 17, 2015, 9:46 a.m. |
+1 |
Experience for voted comment AaronCritchley: 1 on suic: Hi, you can do it without _re_. [_filter()_](https://docs.python.org/3/library/functions.html?highli... |
March 17, 2015, 9:46 a.m. |
+5 |
Experience for appreciated comment AaronCritchley: 1 on suic: Hi, you can do it without _re_. [_filter()_](https://docs.python.org/3/library/functions.html?highli... |
March 17, 2015, 7:38 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi @bryukh. The "print instead of return" is one of the most common mistakes made by newbies. I real... |
March 17, 2015, 1:38 a.m. |
+1 |
Experience for voted comment TomTerebus: 1 on suic: Hi, 1. line 4 is never reached, you don't need it. 2. False not in ? Haw you heard about _all()_? 3.... |
March 17, 2015, 1:38 a.m. |
+5 |
Experience for appreciated comment TomTerebus: 1 on suic: Hi, 1. line 4 is never reached, you don't need it. 2. False not in ? Haw you heard about _all()_? 3.... |
March 17, 2015, 1:35 a.m. |
+1 |
Experience for voted comment TomTerebus: 1 on suic: Hi, 1. _str_ in str(bin(x)) is redundant as _bin()_ returns __str__. 2. Look at xor operator: ^. etc... |
March 17, 2015, 1:35 a.m. |
+5 |
Experience for appreciated comment TomTerebus: 1 on suic: Hi, 1. _str_ in str(bin(x)) is redundant as _bin()_ returns __str__. 2. Look at xor operator: ^. etc... |
March 17, 2015, 1:31 a.m. |
+5 |
Experience for appreciated comment TomTerebus: 1 on suic: Hi, my guess is that there's some white space (tab or four spaces) in the first one. Try to compare ... |
March 17, 2015, 1:31 a.m. |
+1 |
Experience for voted comment TomTerebus: 1 on suic: Hi, my guess is that there's some white space (tab or four spaces) in the first one. Try to compare ... |
March 16, 2015, 5:37 p.m. |
+1 |
Experience for voted comment lllz: 1 on suic: Hi, I have to say that's an interesting idea. When I have to vote: If it's possible I would like bot... |
March 16, 2015, 5:37 p.m. |
+5 |
Experience for appreciated comment lllz: 1 on suic: Hi, I have to say that's an interesting idea. When I have to vote: If it's possible I would like bot... |
March 16, 2015, 5:09 p.m. |
+5 |
Experience for appreciated comment AaronCritchley: 1 on suic: Try the [official documentation](https://docs.python.org/3/) before or right after googling ;) The Q... |
March 16, 2015, 5:09 p.m. |
+1 |
Experience for voted comment AaronCritchley: 1 on suic: Try the [official documentation](https://docs.python.org/3/) before or right after googling ;) The Q... |
March 16, 2015, 4:52 p.m. |
+1 |
Experience for voted comment AaronCritchley: 1 on suic: Hi, you can do it without _math.pow()_. There's a power operator: __**__ (see [this](https://docs.py... |
March 16, 2015, 4:52 p.m. |
+5 |
Experience for appreciated comment AaronCritchley: 1 on suic: Hi, you can do it without _math.pow()_. There's a power operator: __**__ (see [this](https://docs.py... |
March 16, 2015, 1:29 p.m. |
+2 |
Experience for voted solution viprip: 1 on One-liner variation-suic |
March 16, 2015, 9:59 a.m. |
+1 |
Experience for voted comment OMFGNuts: 1 on suic: Hi, there are several issues: 1. You have to __return__ your result, __not print__ it. 2. Line 12: W... |
March 16, 2015, 9:59 a.m. |
+5 |
Experience for appreciated comment OMFGNuts: 1 on suic: Hi, there are several issues: 1. You have to __return__ your result, __not print__ it. 2. Line 12: W... |
March 14, 2015, 9:03 p.m. |
+1 |
Experience for voted comment Crooks5001: 1 on suic: Hi, there are several issues: 1. You have to __return__ your result, __not print__ it. 2. Line 12: W... |
March 14, 2015, 9:03 p.m. |
+5 |
Experience for appreciated comment Crooks5001: 1 on suic: Hi, there are several issues: 1. You have to __return__ your result, __not print__ it. 2. Line 12: W... |
March 14, 2015, 12:31 p.m. |
+2 |
Experience for voted solution skliarpawlo: 1 on Revisited KvaNTy's Straight and primitive-suic |
March 14, 2015, 6:50 a.m. |
+1 |
Experience for voted solution caynan: 1 on First-suic |
March 13, 2015, 11:39 p.m. |
+1 |
Experience for voted comment lukas.linhart: 1 on suic: I know about the duplication, but: 1. I was lazy :) 2. And read the description in a strict way :D :... |
March 13, 2015, 11:38 p.m. |
+3 |
Experience for voted solution lukas.linhart: 2 on Less duplication-suic |
March 13, 2015, 8:42 a.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: Hi, Vekis (or Vekys?) or not :), you're right, that list is not the best data data structure here. I... |
March 10, 2015, 10:15 p.m. |
+5 |
Experience for appreciated comment evgensaplev: 1 on suic: Because index has to be an __int__ and s / 2 returns a __float__ (you can't have index 3.0 or 3.6) T... |
March 10, 2015, 10:15 p.m. |
+1 |
Experience for voted comment evgensaplev: 1 on suic: Because index has to be an __int__ and s / 2 returns a __float__ (you can't have index 3.0 or 3.6) T... |
March 10, 2015, 6:03 a.m. |
+5 |
Experience for appreciated comment stclair.daniel_f70a54fff4764c4: 1 on suic: Hi, lines 6-11 are "procedural re-inventing the wheel": Look at _str.join()_ method. |
March 10, 2015, 6:03 a.m. |
+2 |
Experience for voted comment stclair.daniel_f70a54fff4764c4: 1 on suic: Hi, lines 6-11 are "procedural re-inventing the wheel": Look at _str.join()_ method. |
March 9, 2015, 6:50 p.m. |
+5 |
Experience for appreciated comment StaticFuzz: 1 on suic: Hi, it's not limited to return statements. It's a sort of [_ternary operator_](https://docs.python.o... |
March 9, 2015, 6:50 p.m. |
+1 |
Experience for voted comment StaticFuzz: 1 on suic: Hi, it's not limited to return statements. It's a sort of [_ternary operator_](https://docs.python.o... |
March 9, 2015, 5:57 p.m. |
+5 |
Experience for appreciated comment arma: 1 on suic: Hi, why try...except? You can easily handle it by _if_ or _and_. E. g.: if array: ... else: return 0 |
March 9, 2015, 5:57 p.m. |
+1 |
Experience for voted comment arma: 1 on suic: Hi, why try...except? You can easily handle it by _if_ or _and_. E. g.: if array: ... else: return 0 |
March 9, 2015, 5:42 p.m. |
+1 |
Experience for voted comment arma: 1 on suic: Hi, you can shorten it using _any()_: return any(a.endswith(b) for a, b in permutations(words_set, 2... |
March 9, 2015, 5:42 p.m. |
+5 |
Experience for appreciated comment arma: 1 on suic: Hi, you can shorten it using _any()_: return any(a.endswith(b) for a, b in permutations(words_set, 2... |
March 9, 2015, 3:44 p.m. |
+1 |
Experience for voted comment StaticFuzz: 1 on suic: Hi, nice solution. You can shorten it: new_list = sorted(list(args)) return new_list[-1] - new_list[... |
March 9, 2015, 3:44 p.m. |
+5 |
Experience for appreciated comment StaticFuzz: 1 on suic: Hi, nice solution. You can shorten it: new_list = sorted(list(args)) return new_list[-1] - new_list[... |
March 8, 2015, 3:39 p.m. |
+1 |
Experience for voted comment arma: 1 on suic: Hi, with operator.mul it's more universal, but you can write it also this way: return reduce(int.__m... |
March 8, 2015, 3:39 p.m. |
+5 |
Experience for appreciated comment arma: 1 on suic: Hi, with operator.mul it's more universal, but you can write it also this way: return reduce(int.__m... |
March 8, 2015, 12:40 p.m. |
+1 |
Experience for voted comment arma: 1 on suic: Hi, 10 is the correct answer. Upon closer inspection: # result # | # V # In (5, 3, 2, 1, 0) there ar... |
March 8, 2015, 10:39 a.m. |
+1 |
Experience for voted solution steez03: 1 on First-suic |
March 7, 2015, 1:17 a.m. |
+5 |
Experience for voted solution jedigurl: 2 on First-suic |
March 5, 2015, 4:32 p.m. |
+5 |
Experience for appreciated comment AndrewYoung: 1 on suic: Hi, on lines 10 and 12 you can omit the []. |
March 5, 2015, 4:32 p.m. |
+1 |
Experience for voted comment AndrewYoung: 1 on suic: Hi, on lines 10 and 12 you can omit the []. |
March 4, 2015, 12:18 p.m. |
+8 |
Experience for solved mission The Most Numbers |
March 4, 2015, 9 a.m. |
+2 |
Experience for voted solution thunderbird: 1 on Less duplication-suic |
March 4, 2015, 5:02 a.m. |
+8 |
Experience for voted solution AndrewYoung: 2 on First-suic |
March 2, 2015, 11:21 a.m. |
+1 |
Experience for voted comment mariacl: 1 on suic: Hi, you can shorten your code like this: def checkio(data): data.sort() length = len(data) if length... |
March 2, 2015, 11:21 a.m. |
+5 |
Experience for appreciated comment mariacl: 1 on suic: Hi, you can shorten your code like this: def checkio(data): data.sort() length = len(data) if length... |
March 2, 2015, 10:09 a.m. |
+1 |
Experience for voted solution KarthickHariharan: 1 on One-liner variation-suic |
March 1, 2015, 7:19 p.m. |
+1 |
Experience for voted solution busthehero_28e07718e67f4c8fbb7: 1 on One-liner variation-suic |
March 1, 2015, 3:58 p.m. |
+5 |
Experience for appreciated comment CraigFranklin: 1 on suic: Hi, let me have some comments: You don't need: 1. the else branches at all. 2. "== True" as test is ... |