[Solved] What’s the difference between the given two codes. One gives time limit exceeded when run on ideone and the other works fine [closed]



What’s the difference between the given two codes. One gives time limit exceeded when run on ideone and the other works fine [closed]

solved What’s the difference between the given two codes. One gives time limit exceeded when run on ideone and the other works fine [closed]