Dec. 17, 2021, 11:28 p.m. |
+ 1 |
for Comment
Phil15: For fun, those expressions are equivalent: map(''.join, itertools.product('01', repeat=7)) map('{:0>...
|
Dec. 10, 2021, 2:45 a.m. |
+ 1 |
for Task
Scytale Encryption
|
Dec. 9, 2021, 8:02 a.m. |
+ 1 |
for Task
Atbash Cipher
|
Nov. 24, 2021, 1:41 a.m. |
+ 1 |
for Task
Stock Profit
|
Sept. 29, 2021, 5:26 a.m. |
+ 1 |
for Task
Park Benches
|
Sept. 7, 2021, 10:40 p.m. |
+ 1 |
for Task
Weekly Calendar
|
Sept. 7, 2021, 9:31 p.m. |
+ 1 |
for Task
Triangular Islands
|
Sept. 6, 2021, 4:13 a.m. |
+ 1 |
for Task
Next Birthday
|
Aug. 11, 2021, 4:47 a.m. |
+ 1 |
for Post
Clearer explanation
|
Aug. 4, 2021, 4:49 a.m. |
+ 1 |
for Comment
Phil15: "item2.remove(item2[n])" does not remove the item at index "n" but the first occurence of `item2[n]`...
|
March 8, 2020, 4:52 a.m. |
+ 1 |
for
numpy--dead-inside-
|
March 8, 2020, 4:52 a.m. |
+ 1 |
for
First-Sim0000
|
March 8, 2020, 4:50 a.m. |
+ 1 |
for
pop()-kurosawa4434
|
Dec. 28, 2019, 3:45 p.m. |
+ 1 |
for Comment
kurosawa4434: Hi Mohamed_A._Stohy. If you find non-alphabetic characters, you need to initialize the count and con...
|
Dec. 28, 2019, 3:28 p.m. |
+ 1 |
for Comment
Phil15: First, `isisnstance(other, Army)` is nearly the same as `type(other) == Army`. It is for allowing a ...
|
Dec. 25, 2019, 8:44 p.m. |
+ 1 |
for Task
River Crossing
|
Dec. 15, 2019, 6:50 p.m. |
+ 1 |
for Comment
Phil15: Check part have three more tests: assert climbing_route([ '000002000000', '000001000000', '000000000...
|
Dec. 3, 2019, 7:03 p.m. |
+ 1 |
for Post
So happy, thank you so much
|
Dec. 3, 2019, 7:03 p.m. |
+ 1 |
for Comment
Phil15: **Great community indeed.** _Small enough_ to hope to be the "leader of the month". _Big enough_ to ...
|
Dec. 3, 2019, 7 p.m. |
+ 1 |
for Comment
veky: Well, I'm just trying to show people that Python lists and dicts are not really arrays and hash-tabl...
|
Nov. 27, 2019, 6:31 a.m. |
+ 1 |
for Task
Magic with 5 cards
|
Nov. 24, 2019, 10:23 p.m. |
+ 1 |
for Task
Inscribe a Contour
|
Nov. 21, 2019, 2:51 a.m. |
+ 1 |
for Comment
Phil15: ## I executed it and got an index error line 94 and I'm sure why. Well, I tried to understand it but...
|
Nov. 19, 2019, 7:22 a.m. |
+ 1 |
for Comment
veky: Of course, _ordered pair_ of two points was meant. Then you can always introduce the convention that...
|
Nov. 19, 2019, 1:57 a.m. |
+ 1 |
for Task
Searchlights
|
Nov. 17, 2019, 2:13 a.m. |
+ 1 |
for Task
Unfair Districts
|
Nov. 12, 2019, 2:02 a.m. |
+ 1 |
for Comment
juestr: Regarding rank, summing the indices appears to be flawed to me (despite weak tests). What you'd real...
|
Nov. 12, 2019, 1:12 a.m. |
+ 1 |
for Task
Escape
|
Nov. 10, 2019, 7:08 a.m. |
+ 1 |
for Comment
veky: I just have to comment this, since it might create a wrong impression (assuming it is a characteriza...
|
Oct. 1, 2019, 4:26 a.m. |
+ 1 |
for Comment
kurosawa4434: Nice memoization. Line 30 equivalent the following: if not monster_ctr - lett_ctr:
|
Sept. 24, 2019, 6:41 a.m. |
+ 2 |
for
21-liner: Dynamic programming to get scopes, heapq to minimize unsupplied cities-Phil15
|
Sept. 22, 2019, 4:58 a.m. |
+ 1 |
for Task
Power Plants
|
Sept. 22, 2019, 2:03 a.m. |
+ 1 |
for Comment
veky: The interesting question is, why did you think you have to. I think I have a theory. You're not the ...
|
Sept. 22, 2019, 1:39 a.m. |
+ 1 |
for Task
Halloween Monsters
|
Aug. 31, 2019, 1:11 a.m. |
+ 1 |
for Task
Hexagonal Islands
|
Aug. 29, 2019, 7:18 p.m. |
+ 1 |
for Task
Landing Site
|
July 16, 2019, 11:06 p.m. |
+ 1 |
for Comment
Phil15: for i in array[::2]: # i is not an index but an element of the array answer += i # instead of array[...
|
June 25, 2019, 3:15 a.m. |
+ 1 |
for Comment
colinmcnicholl: A very good solution. There are some more pythonic ways of coding 'diffs' such as: diffs = set(a - b...
|
April 25, 2019, 5:11 a.m. |
+ 1 |
for Comment
Sim0000: 1st example uses argument unpacking. When a = [1, 2, 3], max(\*a) means max(1, 2, 3) and max(a) mean...
|
April 25, 2019, 4:18 a.m. |
+ 1 |
for Task
Broken Window
|
April 9, 2019, 5:20 a.m. |
+ 1 |
for Comment
Phil15: There is, hopefully, another way to guarantee that without sorting the entire set, your key function...
|
March 20, 2019, 5:28 a.m. |
+ 1 |
for Comment
PythonWithPI: I like how you add the reversed array to the normal array but multiply by a bit vector first to prop...
|
March 5, 2019, 11:07 p.m. |
+ 3 |
for
Dijkstra with priority queue-Phil15
|
March 4, 2019, 11:57 p.m. |
+ 1 |
for Post
I don't understand one test case
|
March 4, 2019, 9:48 p.m. |
+ 1 |
for Task
Flood Area
|
Dec. 1, 2018, 5:45 a.m. |
+ 1 |
for Comment
veky: Because the API is bizarre. `write`, `delete` and `send` obviously share state, in the form of "curr...
|
Nov. 15, 2018, 7:38 p.m. |
+ 1 |
for Comment
veky: > my code is not very pythonic, right? Sorry, I thought _that_ was obvious. :-) > Could you give me ...
|
Nov. 15, 2018, 7:26 p.m. |
+ 3 |
for
map can take more than 2 arguments-veky
|
Nov. 15, 2018, 7:22 p.m. |
+ 1 |
for Comment
veky: Well, at least I named the [solution](https://py.checkio.org/mission/ascending-list/publications/vek...
|
Nov. 2, 2018, 6:43 p.m. |
+ 1 |
for Comment
Phil15: `range(len(items)-1)` is enough because `range(0)` and `range(-1)` are both empty.
|
Oct. 25, 2018, 5:05 a.m. |
+ 1 |
for Task
Fast Train
|
Oct. 16, 2018, 5:44 p.m. |
+ 1 |
for Comment
Merzix: You must understand what the code you are writing means. Simple `print()` can halp you with it. Try ...
|
Oct. 14, 2018, 3:34 a.m. |
+ 1 |
for
First-MarcAureleCoste
|
Oct. 5, 2018, 1:33 a.m. |
+ 1 |
for
8-liner: pure numpy-Phil15
|
Oct. 5, 2018, 1:18 a.m. |
+ 1 |
for Comment
JamesArruda: The basic idea is to search for a group of characters that are repeated later. It uses 'capture grou...
|
Oct. 2, 2018, 4:47 p.m. |
+ 1 |
for Comment
kurosawa4434: Performance may be improved with memoization. I often use it in a hard mission :) memo = set() def i...
|
Oct. 2, 2018, 6:39 a.m. |
+ 1 |
for Comment
kurosawa4434: It is an interesting idea. But, How about the following case? assert g_key([[9, 9, 9, 9, 9], [9, 9, ...
|
Sept. 30, 2018, 4:27 p.m. |
+ 1 |
for Comment
Phil15: No need of itertools.chain counts = Counter(ring for cube in cubes for ring in rings(cube)) you can ...
|
Sept. 29, 2018, 8:08 p.m. |
+ 1 |
for Post
A brilliant set of missions!
|
Sept. 29, 2018, 8:07 p.m. |
+ 1 |
for Comment
Merzix: You forgot '*' before args return ",".join(*args).replace("right", "left") or return ",".join(args[0...
|
Sept. 29, 2018, 7:22 a.m. |
+ 2 |
for
search(positions, word='hypercube'):-flpo
|
Sept. 29, 2018, 1:10 a.m. |
+ 1 |
for
OO reuse-BrianMcleod
|
Sept. 29, 2018, 1:02 a.m. |
+ 2 |
for
InspiredByMoff-Kouri
|
Sept. 29, 2018, 12:51 a.m. |
+ 1 |
for
First-mortonfox
|
Sept. 28, 2018, 6:45 p.m. |
+ 1 |
for Comment
veky: That article wasn't really about dunder new vs dunder init. For the most cases, you don't need eithe...
|
Sept. 20, 2018, 10:25 p.m. |
+ 1 |
for
6-liner: clean-przemyslaw.daniel
|
Sept. 20, 2018, 10:20 p.m. |
+ 2 |
for
First-MBM_1607
|
Sept. 20, 2018, 4:15 a.m. |
+ 1 |
for Comment
Merzix: Raplace r = numbers_array.insert(i, n) by numbers_array[i] = n And best of all follow the advice of ...
|
Sept. 13, 2018, 10:14 p.m. |
+ 1 |
for
N[0] = 'zero'-flpo
|
Sept. 12, 2018, 11:17 p.m. |
+ 2 |
for
First_Half-Sillte
|
Sept. 12, 2018, 4:16 p.m. |
+ 1 |
for
sum bool-Phil15
|
Sept. 11, 2018, 3 p.m. |
+ 1 |
for Comment
Phil15: There two type of spaces in input. 3 spaces between words, one space between letters. So split is in...
|
Sept. 11, 2018, 4:26 a.m. |
+ 1 |
for Comment
veky: Yes, I know I have trained people to use enumerate instead of range(len, but when you say i, _ in en...
|
Sept. 9, 2018, 1:51 p.m. |
+ 3 |
for
min of dict of enumerate of zip of splitlines of strip by count of columns of argument of key of min-veky
|
Sept. 7, 2018, 8:59 p.m. |
+ 1 |
for Comment
DahliaSR: Oh my god... I really don't see what kind of "logic" you tried to use here. These points might be he...
|
Sept. 3, 2018, 5:01 p.m. |
+ 1 |
for Comment
veky: The point is, "So Pythonic! How does it work?" is impossible. If it is Pythonic, then you know how i...
|
Sept. 2, 2018, 2:40 p.m. |
+ 1 |
for Comment
a2004458: Rookie is a subclass of Warrior with **attack** = 1, used only in the mission's test suite, one of s...
|
Sept. 2, 2018, 2:28 p.m. |
+ 1 |
for Comment
a2004458: return new_ph = re.sub(r'*right', r'left', phrases)) Python (as of 3.7) doesn't have assignment expr...
|
Sept. 2, 2018, 2:23 p.m. |
+ 1 |
for
keys()-kurosawa4434
|
Sept. 2, 2018, 1:09 a.m. |
+ 2 |
for
First-martin_b
|
Sept. 2, 2018, 1:05 a.m. |
+ 1 |
for
First-gntontos
|
Sept. 2, 2018, 1:04 a.m. |
+ 1 |
for
Second-Michael_Zilberman
|
Sept. 2, 2018, 1:04 a.m. |
+ 1 |
for
First-aleksandr.zaytcev
|
Sept. 2, 2018, 1:03 a.m. |
+ 1 |
for
First-a.hayashi_a579e6a34ed04680add6
|
Aug. 31, 2018, 12:43 a.m. |
+ 1 |
for Task
Supply Line
|
Aug. 28, 2018, 5:37 p.m. |
+ 1 |
for
New horse, old tricks-veky
|
Aug. 27, 2018, 12:25 a.m. |
+ 1 |
for
First-blaxmi
|
Aug. 27, 2018, 12:19 a.m. |
+ 1 |
for Comment
veky: ... which is not possible to do in Python. Or, at least, not with current technology. Python doesn't...
|
Aug. 25, 2018, 2:14 p.m. |
+ 1 |
for Comment
Sim0000: Thanks for your review. For your reference. Design patterns were created for old specification langu...
|
Aug. 25, 2018, 2:14 p.m. |
+ 1 |
for
class factory-Sim0000
|
Aug. 20, 2018, 10:18 p.m. |
+ 1 |
for Post
deadlock: healer-vampire vs. healer-defender
|
Aug. 19, 2018, 12:21 a.m. |
+ 2 |
for
First-martin_b
|
Aug. 19, 2018, 12:19 a.m. |
+ 2 |
for
First-okaoka0523
|
Aug. 19, 2018, 12:16 a.m. |
+ 3 |
for
First-jcg
|
Aug. 18, 2018, 11:38 p.m. |
+ 1 |
for Post
Some statistic report about 88th puzzle
|
Aug. 11, 2018, 3:14 a.m. |
+ 1 |
for
[a1, a2][fight(a1[0], a2[0])].pop(0)-flpo
|
Aug. 11, 2018, 3:08 a.m. |
+ 2 |
for
First-Moff
|
Aug. 9, 2018, 1:17 a.m. |
+ 1 |
for Comment
Phil15: Others units than Warrior are subclasses of Warrior, so you don't have to copy is_alive property eac...
|