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.
Hm! Didn't think the order mattered. Now I know better! Fixed.
Sure, why not? Done!
Heck, it doesn't even need to be what you would normally consider a pathfinding algorithm. All you're looking for is whether or not there -is- a path.
Doing an attempt runs all tests without stopping. If you time out on the last test, it still tells you the whole thing timed out.
Each \n marks the end of a row.
You are a gentleman and a scholar, suic.
This comment is hidden because it contains spoiler information about the solution
One of the tests is NULL. Not an empty string, but NULL. You have to return an empty string if you get NULL, despite that not being mentioned in the requirements.
Okay no, there's a specifically laid out proper procedure for dealing with numbers. If you aren't using the proper procedure, it's bad code (difficult to maintain, change, understand, etc) as proven by people having difficulty getting test cases to work.
The tests for this kata are clearly poorly written....
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I've been able to get around the timing out by working in Javascript - which apparently is light enough on system resources for it to get pushed through in short order.
C# is still timing out.
Seems to work, but fails sometimes? Sounds like edge conditions. Are you dealing with negative numbers? Empty sets? Sets of all the same number? Try to think of worst-case situations where your solution might fail.