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.
In Java basicTests() expected and actual values are swapped.
Program random test always expects a number 1 unity bigger than my answer, but when i use a numeric bases conversor it always gives my answer
Language: C++
Test suit missing the required header
std::string
using namespace std
is redundant.Description should be language-agnostic
In the description, it's written that we have to:
"return the corresponding number (after keeping only the '1's)."
And then, in the examples below, it's written:
Correct me if I'm wrong, but after keeping only the
1s
, we would be left with an empty string (""
), and if I understand your examples correctly,corresponding number
means the binary corresponding number in base 10 (decimal).So, the corresponding number for
""
is not0
, it's an error.If you want us to specifically return
0
for a certain case, you should list it as the return values you expect from the function.C#: method name should be
PascalCase
(Please refer to implementation of backward compatibility here )Saw that someone made the same comment, but... found it REALLY strange that... the 'n' parameter is not needed..
It's not explained how memory should be handled.
Such input size is completely unreasonable.
There are a few mistakes in the description:
The parameter name is shadowing a built-in function in Python.
Incorrect:
Who is the most prioritary?
Correct:
Who has priority?
This comment is hidden because it contains spoiler information about the solution