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.
Anyone managed to complete this in Java? I am not sure how to return 'undefined' from function which return int.
Any tips for someone trying to solve that in Java 8?
I've passed your kata just after few attemptions of running tests. When cases described above were not generated I succeed. I think that should be fixed or explained in kata description just to save others time for investigation.
Thanks for quick response. I'm using Java 8.
I can't preview test cases.
The only one I fail is:
testRandom(SolutionTest)
✘ String index out of range: -1
I run my code in eclipse to test all available test cases and cases from examples and my code do it correctly but I still can't pass that 'testRandom'.
edit1: ok, I've found that I can preview 'testRandom' being in discourse tab.
edit2: ok, my program fault at test case: '!! D31 !ddbDcE! CBcbBdeE3'. I didn't expected the word will contain only exclamation marks.
edit3: now I got single '!' from random: '!!CBd1cEAd3Ac2b1! e213242c EBB4! !'
edit4: sometimes it produces double spaces: '1Ed__!!3Ee!! 5A2baB32D1!!' (i marked it with double underscore here)
How to treat such case: " !" ? Should I remove '!' or leave it?
This Kata is a not worth effort and time. Even I print correct diamond I can't pass those test cases.