My issue
i am not able to build the logic
help me to build logic
My code
#include <stdio.h>
int main(void) {
// your code goes here
}
Problem Link: Practice Coding Problem - CodeChef
i am not able to build the logic
help me to build logic
#include <stdio.h>
int main(void) {
// your code goes here
}
Problem Link: Practice Coding Problem - CodeChef
For every budget of potential customer find number of budgets greater than that number and that is the number of items you can sell at that cost. so multiply it with cost to get revenue.
Maximum value of such revenues is the answer.