problem link:
discuss: in this problem you have to combine the color as much it get minimum. there is six combination possibile,so do it lexographically order.
try your self before see the code
discuss: in this problem you have to combine the color as much it get minimum. there is six combination possibile,so do it lexographically order.
try your self before see the code