My Approach-
https://www.codechef.com/viewsolution/13967371
Please explain your appraoch.
PS-New to graph problems
My Approach-
https://www.codechef.com/viewsolution/13967371
Please explain your appraoch.
PS-New to graph problems
Your code fails in this testcase:
1
11 9
1 5
2 5
3 5
4 5
5 6
6 11
11 7
11 8
11 9
my approach is totally wrong?
what is required o/p?
Please Help me.