Can someone help me how to solve this problem.I use greedy algorithm,every time I find the point which can destroy most rocks,but it wrong answer. I cannot find what data make the solution WA. Can someone tell me how to solve it?
thanks in advance!