Flow Traders SWE Interview Question 2023 December | Merge Sort | off-campus

Question · Posted Jun 2026

Question 1: Count of Smaller Numbers After Self Problem Statement Given an integer array nums, return an integer array counts where counts[i] is the number of smaller elements to the right of nums[i]. Constraints 1 <= nums.length <= 105 -104 <= nums[i] <= 104 Examples Example 1: Input: nums = [5, 2, 6, 1] Output: [2, 1, 1, 0] Explanation 1: For 5: elements [2,1] are smaller to its right -> count=2. For 2: element [1] is smaller -> count=1. ...

The full answer & interview discussion are available to premium members.

Log in Create a free account