Ad
  • Custom User Avatar

    There is 1000 tests, and n can go up to 100_000. Check how long your solution runs for n=100k.

    Your solution being too slow is not a kata issue.