LeetCode Question · May 2022

Amazon SDE2 Online Assessment

2 upvotes 1,469 views 5 replies

Question Details

Given an array of integers(unsorted) and an integer K, count the number of sub-arrays whose difference between smallest and largest element is less than or equal to K >>>>> I...

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, Strings .

Difficulty rating: Hard