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
I added two examples of large values to the sample and fixed tests in all the translations.
This comment is hidden because it contains spoiler information about the solution
Will do when I get a chance, probably Tuesday.
Have another suggestion (let you see): as I clicked several times before passing (waiting for the random tests NOT to generate such a case).. it means that invalid solutions may pass..
you should add such a case in the fixed tests. And may be in the first given tests.
The condition "c to be less than int max" is really redundant, since all variables are ints.
I did add the following text to the description, which hopefully will clarify things:
Note: Although a, b, c are all integers, it's possible that their squares can exceed the integer bound in a statically-typed language. Such solutions should be included.
I know why my first sol didn't pass (as well as ... why my accepted solution passes not 100% of the time)...
The condition for c to be less than int max in c++(in c++, use std::numeric_limits::max()) is never mentioned in the description....
Make a special description in
Hi eurydice5717,
I believe I have fixed the issue. Please try again and let me know.
Regards,
brodiemark
Trying C++, having a problem with random cases.
You can verify that the actual results are triples satisfying the requirements ;-)
How can the expected result be '[]' ??
??
Whenever encode or decode is called, my code prints in order input string and output string..
I Will check.
but... doesnt explain the output auab^... of the expected value ??
can't verify due to not having solved in c++/not seeing your code
but - this looks to me like you're mixing up different test cases, ie. you're showing the input of one test and the expected output of a different one. be careful with how you print and how you read the output.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
duplicate of this suggestion
Does that edge case (n=1, k=10) still exist? Right now, the description says (0 ≤ k ≤ n^2).
Loading more items...