Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
there will always be only one or zero occurances of '#' so there will only ever be two strings
spoiler flag, thx...
This comment is hidden because it contains spoiler information about the solution
You may want to have some unit test before you refactor your code. Under a good protection, changing any implementation should be safe :)
Pro tip: don't waste your energy trying to up the quality of codewars posts
Bad practice because:
If it is faster, why not just give it a shot?
I implemeted simple Dijkstra algorithm and it works fine for little test cases. But it is not fast enough for random test.
Should I try Binary heap for Dijkstra or there is a better way?
Ok, i got it, thanks.
Python translation kumited.
approved.
That's fair enough, and that's why I tried clarifying what I meant in 2nd post.
Performance testing and because it is fun to have really big numbers.
...just because.
I meant: why do the inputs have to be this big?
Loading more items...