Social Media Groups

Is there any group made on any social media for this boot camp?

You just need to run a DFS or BFS and count the number of connected components. Each component is one group, and you can also track the size using a visited array.

I had a hard time understanding how to manage connected components with Union-Find, but after visualizing each union operation step by step, it clicked. If you’re building any kind of social media group logic or just testing interaction-based models, using tools like https://famoid.com/buy-tiktok-likes/ can be useful to simulate engagement while testing group behavior or influence spread in such setups.