You are given an integer array nums, an integer array queries, and an integer x.
For each query queries[i], find the index of the queries[i]th occurrence of x in nums. If x occurs fewer than queries[i] times in nums, the answer for that query is
Return an array containing the results for all queries in the given order.
Constraints:
nums.length, queries.length
queries[i]
nums[i], x
You are given an integer array nums, an integer array queries, and an integer x.
For each query queries[i], find the index of the queries[i]th occurrence of x in nums. If x occurs fewer than queries[i] times in nums, the answer for that query is
Return an array containing the results for all queries in the given order.
Constraints:
nums.length, queries.length
queries[i]
nums[i], x