Search⌘ K
AI Features

Contains Duplicate II

Contains Duplicate II asks whether an integer array has two distinct positions holding the same value with a distance of at most k, returning true or false.

Statement

You are given an integer array, nums, and an integer k. Determine whether two distinct indices, ...