Problem 2200 · Easy

Find All K-Distant Indices in an Array

Return every index within distance k of some occurrence of a key value. The visual marks each key and shades the indices in its window.

Open the interactive visualisation