Comments

spent 1 hour on C question, during contest(although failed during contest because of a very silly mistake) I came up with the approach, I thought i should share it. https://hatebin.com/obojhmbwps

can anyone check my code for moving segment problem, i can't find any problem in my code.

https://ideone.com/Dusk4t