It looks like you're new here. If you want to get involved, click one of these buttons!
The current algorithm is such a mess and it's not giving the right answers.
It supposed to check for each type of candy, for at least 3 consecutive candy type it will "break".
May I know a simple or at least a source algorithm for that purpose.
Thanks in advance :D