Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

codewars js Spinning Rings

function spinningRings(innerMax, outerMax) {
    for (var i = 1; innerMax - ((i - 1) % (innerMax + 1)) !== i % (outerMax + 1); i++) { }
    return i;
};
 
PREVIOUS NEXT
Tagged: #codewars #js #Spinning #Rings
ADD COMMENT
Topic
Name
8+4 =