35
Y & R gartele
Last seen 1 hour ago
Member for 4 years, 2 months, 7 days
Difficulty Normal
Waouh !! -for me- a typical python solution, elegant and efficient
More
I don't know if this solution is particularly fast but how elegant it is! (thanks)
More
clear and concise. Would have deserved a comment
More
perfectly clear and legible.
Maybe use a reverse like
for i in reversed(range(10)):
?
More
It is always very difficult to comment on a master's solution. Here the beginner admires
"for command in commands:"
"queue.append(command[-1])" (doubly noteworthy)
"elif tail:" excellent
So just to critique, how is using a deque relevant? Wouldn't a simple list have fulfilled its role?
Of course
More
Cheer ! Of course we can always discuss this or that way of writing things but it is a real pleasure to read code on a very difficult subject
More
simple and efficient! smart!!!
More
the reading of a master enriches, was he French professor of mathematics
More
the coordinates used are double coordinates
An excellent documentation on the subject can be found at https://www.redblobgames.com/grids/hexagons/
More