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
Can someone summarize the content in 100 words?
I wrote the code for large integers, but when creating this kata, I realized that it had execution time limit, and it can't handle larger test cases like "71717", which returns "1038660". That's why the return type is string instead of interger.
Why such a complex solution if the sample space are just 32 bit integers?
Wait, how? I tried the code yet, but it returned "65536" for 34567, and the test case said it was true bruh :(
The code is fixed. Thanks for your response!
It's good that this errored because this means the tests were using the user's submission solution as the reference solution, which is dangerous
Errors from the random tests:
yo first 2 kyu kata completed !
it's not supposed to be easy
maybe I'm not ready for 2kyu kata; haft a day trying to fix my code but it still not work. Good luck to those who want to try this. :/
read the assertion message, not the line of code:
why the test
do_test("", "ac", "ab", false)
return false :) isn't the part1 contain "" in its?are the random tests even generating proper molecules?. If I print the first 10 chars I get things like
"H)4305C)59"
.This is a duplicate: https://www.codewars.com/kata/52f831fa9d332c6591000511
Loading more items...