https://codeforces.com/problemset/problem/550/B
please check my code it is going in infinite loop please check my code and also check my approach, it correct or not
https://codeforces.com/problemset/problem/550/B
please check my code it is going in infinite loop please check my code and also check my approach, it correct or not
You are changing i inside the loop, which is your loop control variable for outer loop as well, so you are running into tle as it never exceeds pow(2,n)