Tap here to switch tabs
Problem
Submissions

Problem: Smallest Missing Multiple of K

med
30 min
Try to solve the Smallest Missing Multiple of K problem.

Statement

Given an integer array nums and an integer k, return the smallest positive multiple of k that does not appear in nums.

Constraints:

  • 1≤1 \leq nums.length ≤100\leq 100

  • 1≤1 \leq nums[i] ≤100\leq 100

  • 1≤1 \leq k ≤100\leq 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Smallest Missing Multiple of K

med
30 min
Try to solve the Smallest Missing Multiple of K problem.

Statement

Given an integer array nums and an integer k, return the smallest positive multiple of k that does not appear in nums.

Constraints:

  • 1≤1 \leq nums.length ≤100\leq 100

  • 1≤1 \leq nums[i] ≤100\leq 100

  • 1≤1 \leq k ≤100\leq 100