Problem 219 · Easy

Contains Duplicate II

Check if array has duplicate with index difference <= k.

Open the interactive visualisation