Connecting Wires Problem, Greedy Algo

Is it assumed that both coloured balls are same in number?

Hi @shreyaanand2908
Yes, assume they are in same number. Even if not, that won’t bother us much. Some balls won’t be useful that’s it.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Yes,I got it.
Thanks!