โ† Josh Technology questions

Count greater elements to the left of each array element

Filed under Josh Technology

The question

Given an array of size N, count the elements greater than each element on its left side. Example 1 2 3 4 5 gives -1 1 2 3 4.

No write-up yet. Related questions below have one.

Related Josh Technology questions

Collected from public candidate posts and coding forums. Updated Nov 2026.