From what I know, the problem can be solved by greedy since ceil(n) = 100000 so even O(n^2) might fail but my greedy solution has been failing due to various different reasons. Any insights appreciated!
Need help with Calgary Collegiate Programming Competition 2018 Card Trading Problem
From what I know, the problem can be solved by greedy since ceil(n) = 100000 so even O(n^2) might fail but my greedy solution has been failing due to various different reasons. Any insights appreciated!