You are viewing a single comment's thread. Return to all comments →
Nice one liner using the built in functions! Unfortunately, this still fails when k is higher than n (test case #4).
You seem to be getting around it by overwriting k with:
var k = details%details;