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.
.
It was not actually a problem with the reference solution (since no reference solution is used) but I found and fixed a bug where randomly generated nodes were not guaranteed to be unique, which may have been the problem.
JS function name should be
camelCase
, backward compatability fix is adviced !should be fixed, please reset trainer and verify.
In Python version, reference solution sometimes expects false, when path exists
awtsh, you got me there
Haskell (maybe Purescript too?) has random tests but they are very weak, at best. But issues with existing languages should not impact the quality of new translations.
I've made a fork implementing random tests. I think they should be reasonably balanced. Performance requirements could potentially be scaled up further. If the tests work alright then they could be a basis for random tests in other langs.
Does any language have random tests? Your fork is approved.
Python Fork
While its now an adjacency list, the tests never actually produce a case where multiple edges leading from a node matter (ie. simply directly casting the input to a dict still works).
Now looking at the tests, I see there aren't even random tests? I think this translation should not have been approved.
should be fixed
Python:
Loading more items...