Search⌘ K
AI Features

Contains Duplicate II

Contains Duplicate II asks whether an integer array has two distinct indices with equal values no more than a given distance apart, returning true or false.

Statement

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