Subarray with K Distinct Elements Sum
Filed under Publicis Sapient
The question
Find a contiguous subarray containing exactly K distinct elements and output the sum of its elements.
No write-up yet. Related questions below have one.
Related Publicis Sapient questions
Collected from public candidate posts and coding forums. Updated Nov 2026.