Ad
  • Default User Avatar

    I am doing recursion, so declaring a new variable means the count won't work. Would declaring a new variable work with recursion?

  • Default User Avatar

    I found the problem, but I do not know how to solve it. It is because I have a global variable for counting. The output the tests are getting is the addition of all the count.

  • Default User Avatar

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