Amazon OA
Anonymous User
454

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

Comments (2)