TLE in trips after following the editorial ?

I have followed exactly as the editorial said, but still TLE in TRIPS. Is there someone who can please help how I can optimize my soln? I checked that my soln is clearly sqrt(n)*lgn *n . Here is my submission

1 Like