Problem [link](https://imgur.com/rrRWlgDdrive.google.com/file/d/1ymcTsZsZOyyb5SQrWXbqWEbNKWNeTTtj/view?usp=sharing)↵
↵
I could not think of any approach but just am getting an intuition of using DSU in reverse or querying offline but I can't think of anything.↵
Someone please help.↵
↵
I just need an approach not complete code.:)
↵
I could not think of any approach but just am getting an intuition of using DSU in reverse or querying offline but I can't think of anything.↵
Someone please help.↵
↵
I just need an approach not complete code.:)