AlgoMaster Logo

Contains Duplicate II

nums=[1, 2, 3, 1],k=3
0 / 10
algomaster.io
Step:Is there a repeat within distance k = 3? Keep a window of the last k values