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.
tuxino is right, closing
я тоже так думаю
Did you solve this task?
I have the same problem. I try to solve this kata using C. My programm complestes all 3 sample tests succesfully, but it can't go throw random tests.
I looked numbers in one of them, and it seems like some numbers are not reffered to arifmetical progression.
It doesn't say that you must ensure that the number doesn't go below 0. It is a promise that no test case will result in negative numbers.
But this raises another issue: I'm pretty sure that the random tests (in C# at least) are not constructed in such a way that no negative numbers can occur along the way.
Overall my program seemed to be okay.
there were 2 disturbing outputs,
which I don't understand and where my
solution fails:
ReflectionException: Class does not exist
Completed in 0.40ms
Object of class class@anonymous could not be converted to string
Completed in 0.24ms
this I confirmed by using var_dump(">>> $object_oriented_php <<<");
What is my mistake here?
What does this error message indicate?
FinalTest
testAnonymity
testDescription
testKataList
testKataCount
testAuthor
ReflectionException: Class does not exist
Completed in 0.40ms
testAdvertise
testGetKataByNumber
testInvalidKataNumber1
testInvalidKataNumber2
testInvalidKataNumber3
testInvalidKataNumber4
testInvalidKataNumber5
testComplete
testStrval
Object of class class@anonymous could not be converted to string
Completed in 0.24ms
testCongratulations
testCongratulations
Completed in 0.00ms
Hi g964:
thank you for your reply. I am not sure, whether you had the chance to look at the data (output from my function, which showed in the transaction log, where the squared value was different from the result, which seemed okay plenty of times. I checked the hints other ppl got for the same kata and read the respective FAQ section repeatedly. I am also aware that even though "MY CODE" is just great, I might (likely) have done a mistake as you indicated, but so far I believe there might be an issue. My original solution changed drastically after I adviced a person with similar problems as me. I thought my newly foundsolution was fool proof ... :( and I feel a lot of sympathy with your argumentation (40,000 ppl are possibly right!).
Before posting issues have a look at the top of the page: here 1930 guys passed the C++ kata out of more than 40,000 and the fixed tests are the same in all language. Chances are high that there is a problem in your code.
So it's not a kata issue. Can be a problem in your code and/or maybe you don't identify correctly the failed test. Print the input, your output and a clear sign between each test to see exactly which fails.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I am referencing the c++ kata solution.
Most of the answers given don't consider the possibility that wrong parameters are given, though instructed otherwise: "Please keep in mind that the test cases ensure that the number of people in the bus is always >= 0. So the return integer can't be negative."). Wouldn't testing be the place to enforce this instruction?
In many solutions the actual used space character is taken care of. Here insted of tracking space characters 0x20 is appended to the read word. I believe this to be a mistake, which should have been caught by kata tests!
I checked the Kata Test cases and trust them now, naturally I found the solution, but this one is forfeited :(
Loading more items...