- You are given 2 arrays
- For
int[] keyboards
, each element represents a price of a keyboard. - For
int[] drives
, each element represents the price of a drive
- For
- You have
b
dollars to spend. You want to buy 1 keyboard, and 1 drive, but also want to maximize the money you spend on this purchase
int getMoneySpent(int[] keyboards, int[] drives, int b) {
// maximize money spent
}