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.
This comment is hidden because it contains spoiler information about the solution
Small typo: "effeciancy" should be "efficiency"
My solution returns incorrect answers and passes tests: https://www.codewars.com/kata/reviews/636c24b2cfa80900011cd15d/groups/636c32224577db0001985eac
I generally like the idea behind the kata, there are tasks with similar premise. I am not sure I like the technical execution tho.
If it takes the same number of iterations to increment the number to the next higher binary palindrome as the number of iterations to decrement the number to the next lower binary palindrome, then which one do you choose?
This happens in one of the sample tests, where the starting number is 4 and both 3 and 5 are binary palindromes.
No random tests.
The sample tests are set up completely wrong. You can consult this documentation and review other kata to learn how to do it correctly.