#3718

Smallest Missing Multiple of K

pupil · 360 · lc easy +23 · 63.1% accepted · 54 likes · top 65%

Description

Given an integer array nums and a positive integer k, return the smallest positive multiple of k that is not present in nums.

Code

1
2
3