Can someone explain or prove, why calculating all possible values for every interval doesn't get TLE?
I think it should be $$$O(n!)$$$.
Codechef Biteration #2 BIT2C complexity
Can someone explain or prove, why calculating all possible values for every interval doesn't get TLE?
I think it should be $$$O(n!)$$$.