Ad
  • Custom User Avatar

    rejected, needs random tests

  • Custom User Avatar

    requires random tests

  • Custom User Avatar

    I translated this to C++. Could anyone help me to publish it? It needs to Approve.

  • Custom User Avatar

    It's ok in the current version.

  • Custom User Avatar

    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. :joy: So please fix it.

  • Custom User Avatar

    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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution