Touching segments
-
-
AhmedAKZM 10 years ago The output should be three. See this (https://www.hackerrank.com/contests/software-challenge/challenges/picking/forum/comments/48379) comment
-
The output should be three. See this (https://www.hackerrank.com/contests/software-challenge/challenges/picking/forum/comments/48379) comment
Hey guys Consider a testcase as 1
3
1 2
1 2
3 4
Now point 2 crosses 1 2 and point 3 crosses 3 4. But as 1 2 is repeated twice in the given input, should the output be 3 or will it be 2 for the above scenario?
In short, can i ignore duplicate segments given as input?
Add Reply Preview cancel