[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]

[ad_1]

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

[ad_2]

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]