All performance test cases are getting timeout

My Logic has O(N) time complexity but still its failing all of the performance test cases. How can i solve it?

Hey @jeevanmali1994 I think there’s a sys issue. I converted your code to CPP and submitted it and it passes all the test cases and your code is optimal in terms of time too. Can you please post this issue in #sysissues in slack and tag me

1 Like

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.