Can someone please explain why am i getting TLE in this? 188287272 I have first modelled the graph by only putting the neccessary (directed edges for ladders and edges between nearest vertices which are either starting and ending points of ladders on the same row).