Why two identical point counts twice?

  • 2

    So for the testcase {[0,0],[0,0]}. They are the same point and should be considered as one point. But the expected answer is 2

  • 0

    Well, that is a part of what the questioner want to know. Every question is an abstraction of a real problem. For example a player wants to know the frequency of appearance of Pikachu when he is playing Pokemon Go. {[0,0],[0,0]} means two Pikachus appear at the point[0,0] at the same time. So it is necessary and useful to count [0,0] twice.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.