Prateek Loves Candy TLE

I am getting timelimit error

@srijan44 Hey Srijan Please share your code link of coding blocks ide.

Thank you but i understood what was wrong with the code

1 Like

@srijan44 Please mark this doubt as resolved.

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