CodingReported in a candidate post, Aug 2025
Max sum of a subarray of size k with distinct elements
Filed under Arista Networks
The question
Given an array and an integer k, find the maximum sum of a subarray of size k where all elements are distinct.
No write-up yet. Related questions below have one.
Related Arista Networks questions
Collected from public candidate posts and coding forums. Updated Nov 2026.