Time limit problem (LInked list)

I used the same way to define functions as explained in videos. I am getting time limit error while submitting the problem. How can it be resolved?

Samriddhi plz send your code by saving on ide

Ma’am, it is working properly now. Thank You :slight_smile: