Ad
  • Custom User Avatar

    good solution however to save a mod which is computationally heavy you can do np.arange(0, len(word), 2)

  • Custom User Avatar

    thanks lazy wolf

  • Custom User Avatar

    likely to be my fault but the class for the c++ solution is throwing me off, are we meant to declare it to include the expected result too? When I try and run an example script it says:

    -isystem /runner/frameworks/cpp error: call to non-static member function without an object argument
    testequal(Tortoise::race(v1, v2, g), expected);
    ~~~~~~~~~~^~~~
    1 error generated.

    Any help would be really great as I can program basic c++ but just struggling with the codewars interface/expectations.

  • Custom User Avatar

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