• + 1 comment

    Good job. You don't need to account for constraints. By listing constraints in the problem statement, HackerRank ensures that the data they pass to your program will be within those constraints.

    HackerRank solutions.