LeetCode Question · May 2022 · Los Angeles

Amazon SDE2 | OA |

6 upvotes 2,377 views 3 replies

Question Details

Given an array of n elements find the count of imbalances in it. Imbalance is arr[i+1] - arr[i] > 1 in sorted array Example : [4,1,3,2] for length : 1 subarray 1: [4]...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Sorting