I have solved and submitted the Maximum Circles problem (in hackerblocks) via the Greedy approach. However, I think the greedy approach is wrong for this question. Consider a case like:
In such cases, the minimum is 1 (Remove 1) but our Greedy approach shall yield the answer as 2 (As 2 and 3 conflict with 1). Please correct my understanding should it be flawed.
What is the right approach that accounts for such cases too?