rejected, needs random tests
requires random tests
I translated this to C++. Could anyone help me to publish it? It needs to Approve.
It's ok in the current version.
In c++ they forget to put a ";" at the end of the class initialization. It must be:
#include <string> class Negabinary{ public: static std::string ToNegabinary(int i); static int ToInt(std::string s); };
This is the only case that I cannot understand and tried to recognize which forgotten ";" there in class initialization. So please fix it.
Hi,
Tests are different in python and C++. This test method contains 5 different inputs, and from what I'm seeing everything seems correct => print the inputs, then try to spot your errors.
note: not an "issue", a "question". ;)
cheers
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
rejected, needs random tests
requires random tests
I translated this to C++. Could anyone help me to publish it? It needs to Approve.
It's ok in the current version.
In c++ they forget to put a ";" at the end of the class initialization. It must be:
This is the only case that I cannot understand and tried to recognize which forgotten ";" there in class initialization.
So please fix it.
Hi,
Tests are different in python and C++. This test method contains 5 different inputs, and from what I'm seeing everything seems correct => print the inputs, then try to spot your errors.
note: not an "issue", a "question". ;)
cheers
This comment is hidden because it contains spoiler information about the solution