LeetCode Question · Mar 2024

Amazon OA

3 upvotes 1,929 views 12 replies

Question Details

Need help with this recently asked amazon question. Tried being greedy but could not pass all the test cases

Full Details

Need help with this recently asked amazon question.
Tried being greedy but could not pass all the test cases
image
image
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: Greedy .

Topics