This is the question
https://hack.codingblocks.com/contests/c/452/563
This is my code
https://ide.codingblocks.com/#/s/17172
This is the question
https://hack.codingblocks.com/contests/c/452/563
This is my code
https://ide.codingblocks.com/#/s/17172
try sorting based on ending index
refer this :- https://ide.codingblocks.com/#/s/17180
hope this helps