what will be the expected answer for n=2
1 3
2 2
Confusion regarding a test case
i am talking about the case when two bridges have same end point or isn’t there any case like this??
hello @Shobhit_kumar

as per given statement answer shoud be 2 (they are not considering end point as valid intersection)