PS8#2: Greedy advisor.
I've implemented a greedy advisor program. However, it's more brute force than elegance.
I think the intuitive approach would be to do pre-processing and create sorted lists of tuples (where the tuple is (subject string, value/work/ratio). Then the program would simply read down the list.
However, it seems that's not the approach the professor's wanted us to use as they specified that the function should take the comparator as an argument.
Here's my implementation
http://codepad.org/AjXZL6jD
Did anyone come up with a simpler approach?

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.