Find Target Indices After Sorting

Easy
Searching Array Binary Search Sorting

Sort array and return indices where target appears. Space-separated.

Constraints

1 ≤ len ≤ 100

Examples

Example 1:
Input: 1 2 5 2 3 2
Output: 1 2
Example 2:
Input: 1 2 5 2 3 3
Output: 3
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.