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.
lol i don't remomber how but it did
it's any easy problem it seems
i and c are quite straightforward though?
i = index, which has always been a convention
c = character, which is quite obvious when you look at str(n)
It isn't as big of a deal as you make it out to be, this is about problem solving, not about following pep8 or any naming conventions.
If it was a software then I would 100% agree with you.
This comment is hidden because it contains spoiler information about the solution
hell yeah xD
I have the same problem, i pass all the tests but get a SystemStackError
seems like it wasn't me but the kata itself afterall hehe
Please check your code. If you need help with it, please post it as a Question, not an Issue. The Kata is Ok. Please check how many solutions have passed in JS.
Javascript: Basic test in 'TEST' passed, but the same test in 'ATTEMPT' did'nt:
Test Results:
Basic tests
Test Passed: Value deep equals [6, 7]
Test Passed: Value deep equals [0, 1]
Test Passed: Value deep equals [0, 1]
Test Passed: Value deep equals [2, 2]
Completed in 4ms
You have passed all of the tests! :)
=============================================
Test Results:
Basic tests
Test Passed: Value deep equals [6, 7]
Test Passed: Value deep equals [0, 1]
Test Passed: Value deep equals [0, 1]
Test Passed: Value deep equals [2, 2]
RangeError: Maximum call stack size exceeded
at solve
at solve
at solve
at solve
at solve
at solve
at solve
at solve
at solve
at solve
at solve
at solve
at solve
at solve
at solve
at solve
Completed in 6ms
Random tests
Test Passed: Value deep equals [10288292, 9492336]... etc
Try to recreate the problem in our IDE. See here to find out what input causes it to fail, and see if the same input works in your IDE.
Did you return or print the result?
main.cpp:32:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
main.cpp:8:21: runtime error: execution reached the end of a value-returning function without returning a value
How fix it?
On my pc the test passes the values all correct, here he does not want
Sorry for my English(
This comment is hidden because it contains spoiler information about the solution
Yep, it's not good enough. There's a little trick you need to figure out to speed up the process, which makes it harder than your average 7kyu, IMO.
You're probably missing some
return
statements. You might wanna google around to see how to do recursion..
Loading more items...