LeetCode Question · Oct 2024

Amazon OA

2 upvotes 390 views 2 replies

Question Details

Recieved this question for Amazon OA, although looks very similar to https://leetcode.com/problems/minimum-number-of-increments-on-subarrays-to-form-a-target-array/description/, there is a minor difference in how the subarrays are handled. Tried a lot but could only pass...

Full Details

Recieved this question for Amazon OA, although looks very similar to https://leetcode.com/problems/minimum-number-of-increments-on-subarrays-to-form-a-target-array/description/, there is a minor difference in how the subarrays are handled. Tried a lot but could only pass 6 TestCases. Would appreciate if anybody can help with a solution
image

image

About This Question

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

It covers the following topics: Arrays .

Topics