You are viewing a single comment's thread. Return to all comments →
C#
static int getMoneySpent(int[] keyboards, int[] drives, int b) {
int temp =-1; foreach(var keyboard in keyboards){ foreach(var drive in drives){ if((keyboard + drive) > temp && (keyboard + drive) <= b) temp = keyboard + drive; } } return temp; }
Seems like cookies are disabled on this browser, please enable them to open this website
Electronics Shop
You are viewing a single comment's thread. Return to all comments →
C#
static int getMoneySpent(int[] keyboards, int[] drives, int b) {