Reputation: 169
I'm trying to level up my skills by doing Hacker Rank challenges, however, some of the problem descriptions aren't clear to me.
For instance, in this problem, the function will receive 3 arguments: an integer and 2 arrays. So, why in both example solutions, the input values don't match?
One shows the example input is 3 arrays:
10 2 3
3 1
5 2 8
and the other shows 1 array and 2 integers:
5 1 1
4
5
Am I understanding this right?
Upvotes: 0
Views: 664
Reputation: 23945
Quote: "The first line contains three space-separated integers b, n, and m, the budget, the number of keyboard models and the number of USB drive models."
The "number of" integers are list/array length. In the second example, the two lists/arrays are of length 1.
Upvotes: 0
Reputation: 11
The input you get is 3 integers (the first line) and two arrays (2nd and 3rd line). The first number in line one gives you your budget and number two and three give you the length of the two following arrays.
Upvotes: 1