You are given a queries, where queries[i] = [n_i, k_i].
For each query, calculate the number of distinct arrays of positive integers of length
Return an integer array ans of the same length as queries, where ans[i] is the answer to the query queries[i] modulo
Constraints:
queries.length
You are given a queries, where queries[i] = [n_i, k_i].
For each query, calculate the number of distinct arrays of positive integers of length
Return an integer array ans of the same length as queries, where ans[i] is the answer to the query queries[i] modulo
Constraints:
queries.length