Problem 2461 · Medium
Find the maximum sum of a length-k subarray with all distinct values.
Open the interactive visualisation