💡 Hostel Visit -wrong answer


what is wrong with this code ? testcase 2 shows wrong anwer

hi Anunay
when N is around 10,000(big inputs) it is producing TLE. try to optimize your code against big inputs.