Any further optimization possible?

Any further optimization possible ?

Hey @ritvikagrawal1, I am afraid , I don’t understand your doubt. Please attach the link of your code so that I can see.

Thank you !

Submission #6356335

have a look at this submission id and let me know if any further optimization is possible

Hey @ritvikagrawal1, I saw your code. It looks great. Is there any test case failing ? I don’t think there is any scope of optimization in your code.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.