perfect 2,3,4,5 test cases are failing, not able to figure out the same, any hint for such test cases ? rest of the all are passing , it is happening due to the time complexity ?
Was having the issue with the TC
Closing this topic as it has been solved by you yourself. Great job, keep working hard. if its not resolved feel free to un-mark the accepted solution to re-open the topic.