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.
I don't know if "string rotation" is a common concept but I haven't heard of it. Due to lack of explanation the solution involves more guesswork then it should in my opnion.
Agree with all the above. For now there is too much guesswork involved in solving this kata.
Hard to tell only based on Passed/Failed report.
The tests and final submission often use different tests, with the final submission ones being more extensive.
So you most likely have a problem with you algorithm that is not apparent in the simpler tests.
(Just noticed your comment is from 8 months ago, but I'm posting the reply anyway lol)
Oh yeah, if it's "assertNotEquals" hehe.
Yes, seems ok to me now.
Looks good to me!
In "Your Test Cases":
Test.assertEquals(longestPalindrome("zyabyz", 0, "Are you sure that is a palindrome?")
should be:
Test.assertEquals(longestPalindrome("zyabyz"), 1, "Are you sure that is a palindrome?")
There is a parenthesis missing and the expected value is wrong, should be 1 rather then 0;
More tests including some random ones for the final submission might be good.
Thanks! Yes, I had a while loop with a semicolon after the condition lol.
For some reason it wasn't a problem when running tests...
I am getting "Process was terminated. It took longer than 6000ms to complete"...
My solution which worked for the simple testcases relies on arrays. Is that the problem?
Very clever! :)
Thanks. Yes, makes perfect sense. I should have thought a bit harder :)
Interesting kata. I was able to get the translation going and pass all the tests except for:
Wires are only mapped once
Should not have accepted a second definition for a wire end - Expected: true, instead got: false
Should not have accepted a second definition for a wire end - Expected: true, instead got: false
I really can't figure out what that's supposed to mean. Any pointers? I'm using ruby by the way.
The problem is not limited to a 3d sphere, that's why it's called Hyper Sphere ;)
This comment is hidden because it contains spoiler information about the solution