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 think its probably numbers like 999, 999_999, etc. theyre monotone and output should be "2"
but at the same time theyre 1 mile away from being a big number so output could either be "1".
In my solution I got failed test whenever I prioritise "yes" or "almost" output (1 or 2). When I prioritise "1" - error told me the output should be "2" and vice versa.
upd: my bad, its not 999 and 99999 etc. numbers problem. Its solvable in Java if you pay close attention to task description :-)
OK, modified. Note: that warning doesn't prevent you to pass since it is only a warning. Unfortunately your code is wrong. Cheers.
Your solution has probably a bug which makes it fail sometimes one scenario, and sometimes the other.
You can post your code here for us to check, or you can go to
#haskell
or#help-solve
on Codewars Discord and ask for help with finding your mistake.I just solved the kata and did not have any problems with it.
What exactly you think makes it unsolvable?
You should prioritize
Yes
overAlmost
in case whenn
and any ofn+1
orn+2
are both interesting number.Which language, which numbers?