Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1365. How Many Numbers Are Smaller Than the Current Number
For each element in an integer array, return how many elements in the array are strictly smaller than it. With n ≤ 500 and values in [0,100], this is typically solved by ranking via sorting or by using frequency counts and prefix sums for O(n + range) time.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.