Anyone, please explain briefly!
Applying BFS on the undirected graph gives you twin pointer.
https://stackoverflow.com/questions/35769209/most-efficient-algorithm-to-set-the-twin-pointer
https://gateoverflow.in/39620/gate2016-2-41
64.3k questions
77.9k answers
244k comments
80.0k users