Search⌘ K
AI Features

Contains Duplicate II

Contains Duplicate II checks an integer array for two equal values whose distinct positions are no more than k apart, returning true or false.

Statement

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