I'm trying to solve this problem in HackerRank, but I get timed out error in some test cases. any suggestions? the following is my code; most test cases work, but others time out. in HackerRank,
I'm trying to solve this problem in HackerRank, but I get timed out error in some test cases. any suggestions? the following is my code; most test cases work, but others time out. in HackerRank,