LeetCode Question · Mar 2022

Amazon|OA|Max Subarray Sum of size k that has K distinct Elements

26 upvotes 8,835 views 15 replies

Question Details

Given An Array Of N integers and a Number K return max sum of subarray of size k that has K Distinct Elements. if it does not exist return -1. Test...

Full Details

🔒

Unlock all Amazon questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a amazon interview for a swe role during the oa round reported in 2022.

It covers the following topics: Arrays .

Topics