Ad
  • Custom User Avatar

    Same thing for python

  • Custom User Avatar

    fwiw, same problem in go - the simplest naive solution worked, to my surprise.

  • Custom User Avatar

    I don't see why it is an issue... I put the tag "Optimization" because some comments said that brute force was not sufficient.
    The kyu is not given by the author but by a moderator.
    C++ waas one of the last translation hence I reduced the range in random tests. Moreover C++ seems to be very fast at CW. Last: maybe you are too good, you have almost exactly the same solution as mine:-)

  • Custom User Avatar

    Thanks for your posts. I was at last able to fix that.

  • Custom User Avatar

    If you edit the kata you will see at the first line of public tests: using namespace std;
    but when you "Train" or "Train Again" CW doesn't show it and doesn't use it!...
    despite the fact that I re-published the C++ translation a lot of times.
    Sorry for the inconvenience! Fortunately it is easy to fix by the user all the more
    that there are no problem in the ""Submit tests.

  • Custom User Avatar

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

  • Custom User Avatar

    I think this will add a list inside a list