Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 237 Bytes

README.md

File metadata and controls

8 lines (6 loc) · 237 Bytes

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