I have solved the question using two methods
1.first code satisfied all test cases.
2.second approach as given in hint showing tle.
Please tell me what’s wrong in it.
I have solved the question using two methods
1.first code satisfied all test cases.
2.second approach as given in hint showing tle.
Please tell me what’s wrong in it.
Thank you so much.Now it worked