34
rodka81
13 32 48 Leader of the month
6782/ 7195
Last seen 9 days ago
Member for 7 years, 6 months, 16 days
Difficulty Normal
Best reviews / Newest reviews
from scipy.sparse.csgraph import dijkstra-fokusd 1
Thanks for sharing this! I was not aware of this module in the scipy library. More
First-flpo 1
Nice use of heapq and namedtuple More
next(filter(solve, range), -1)-flpo 1
Never seen contextlib before. Nice solution! More
First-Moff 1
Clear solution without using itertools More
Short thanks to scipy.ndimage.label-Phil15 1 1
Another nice solution with `scipy.ndimage.label`, which I also used again in my solution :) I like the fact that you used generators instead of producing an array or set. More
find-kurosawa4434 1
Nice use of the walrus operator More
First-bourbaka 1
Nice solution! You can simplify your graph function and remove the initializations of the neighbour dict in neighbour={} for el in alist: neighbour[el[0]]=set() neighbour[el[1]]=set() for el in alist: neighbour[el[0]].add(el[1]) neighbour[el[1]].add(el[0 More
First-flpo
Nice solution! Instead of defining a `print_health` method, I would rather redefine the `__repr__` function of both `Army` and `Warrior` classes More
First, with Sphinx docstrings-fenryxo
Upvoted for the comments, the nice solution and the use of pytest :) More
"Correct Sentence"-m9icokat
Using .rstrip('.') is a nice idea More
numpy matrix-rodka81
Thanks. I like numpy and I try to use it where it makes most sense. Glad that it is useful for somebody else :) More
statistics-r.nov.07.b.b 1
This would fit the '3rd party' category better More
6-liner: clean-przemyslaw.daniel
Fascinating solution. Could you please explain how the algorithm works? Thanks More
ndimage-gyahun_dash 1
I love the idea of using center_of_mass. Great solution overall. More