Recently I have learnt about block-cut tree and acknowledged that using block-cut tree one can solve "if two nodes are in same biconnected component" type problems.
But I don't know how to do this.
If anyone knows about this problem, please enlighten me.
Thanks for your time. Happy Coding!