You are viewing a single comment's thread. Return to all comments →
I solved the problem fine, but could someone help me understand why this is a greedy algorithm?
While selecting competition to win you pick competition which is important and has least luck cost. Your solution is optimal at that instant that's why it is greedy.