You are given three integers n, m, and k.
An array arr of size n is called good if:
arr[i] m for every i n.
There are exactly k indices i (i n arr[i] = arr[i + 1].
Return the total number of good arrays. Since the answer can be very large, return it modulo
Constraints:
n
m
k n
You are given three integers n, m, and k.
An array arr of size n is called good if:
arr[i] m for every i n.
There are exactly k indices i (i n arr[i] = arr[i + 1].
Return the total number of good arrays. Since the answer can be very large, return it modulo
Constraints:
n
m
k n