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.
Pretty interesting concepts to learn.
got it. interesting that it went unnoticed for several years and hundreds of solves. will fix t⏰mrr⏱w.
apparently at 10:10, when everything else happens
the OP means that
solution()
fails when both numbers have one digit, which is trueOkay thanks - meanwhile I just ran your code on this test I just made up which expects a result less than
10
. It passed.What am I missing?
Please provide such an example upon which it fails.
Yeah, my solution is correct (see the edit above). The single digit numbers are rare in random tests. I got them on my first attempt, but then didn't on the next 40 attempts. In those 40 attempts everything passed.
I copied CClairvoyant's solution then ran it, and it passed.
The "view solution" button is buggy, difficult to use, and it shows code only sometimes :(
SummerTheCoder If that wasn't a valid way to switch values between variables, then shouldn't more cases fail, than just the one?
hobovsky, why can't you see my code? Does the "View Solution" button not appear for you?
Edit: First glance can often be deceiving... I just found out, that the issue is indeed in the tests. I ran the solution function (that the random tests use to generate expected answers) locally and discovered that it fails and gives empty strings for cases when the result should be less than 10. I encourage you to try it out as well.
Funny kata...
Great kata, well done.
Great kata to have fun, practice and exercise with, compliments.
Simple and funny dynamic programming problem on optimization.
Nice kata, congratulations.
Great kata, thank you.
Loading more items...