Problem 3718 · Easy

Smallest Missing Multiple of K

Walk the positive multiples of k in order and stop at the first one that does not appear in nums.

Open the interactive visualisation