Fastest Solution gives TLE,


#1

I did figure out the base solution but it gave TLE. So I used Interviewbit Complete fastest solution from Editorial but it still gives TLE. Is time limit too tight ?