Panda Guru LogoPanda
Guru

Amazon OA question

Round 1

Questions: Find the sum of maximum of all subarrays multiplied by their length in O(n).

Eg. arr = [4,2,1,2]
Output : 59

Sum = 59.

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.