You are viewing a single comment's thread. Return to all comments →
js single line solution (also to make it a little more fun, chose to do it with no if statements):
const towerBreakers = (n, m) => ((m==1)&&(2) || (2 - n%2));
Seems like cookies are disabled on this browser, please enable them to open this website
Tower Breakers
You are viewing a single comment's thread. Return to all comments →
js single line solution (also to make it a little more fun, chose to do it with no if statements):