You are viewing a single comment's thread. Return to all comments →
Maybe it's been said before, but to simplify you can just have this in the loop:
if (!colors.add(c[i]) { colors.remove(c[i]); pairs++; }
soz for no code markdown idk how
Seems like cookies are disabled on this browser, please enable them to open this website
Equal
You are viewing a single comment's thread. Return to all comments →
Maybe it's been said before, but to simplify you can just have this in the loop:
if (!colors.add(c[i]) { colors.remove(c[i]); pairs++; }
soz for no code markdown idk how