Skip to content

Latest commit

 

History

History
 
 

contains_duplicate_ii

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Problem

Given an array of integers and an integer k, return true if and only if there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between i and j is at most k.

Solution

LRU cache