the problem tag is: 769B - News About Credit Here is my sol: 26520634 Another query is that in the above submission when i change my array size from (n+1) to max the OJ gives me TLE on 5th test case. Why is it so? According to my knowledge array creation is a O(1) process and should no affect the time complexity of the program by any means. Your help will be appreciated!!!