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.
Well I would assume that your output is different from the correct result at position [0][1], meaning first row, second column,
but im not 100% sure.
What does mean "arrays first differed at element [0][1]"? My code creates spiral but it fails.(Java)
You're right. My code solves sample tests by simply moving to the right and down.I think tests should be supplemented with something like this:
"110000\n"+
"010111\n"+
"010101\n"+
"011101\n"+
"000001\n"+
"000001"
Possibly that means your code mutates the input and then it's used to calculate the expected answer. Not sure it's the case here.
I'm confused. My code passes all given sample tests but fails on random ones. What could be the problem?