Can we get wrong а test case?
["DetectSquares",
"add","add","add",
"count",
"add","add","add",
"count",
"add","add","add",
"count",
"add","add","add",
"count"]
[[],
[[5,10]],[[10,5]],[[10,10]],
[[5,5]],
[[3,0]],[[8,0]],[[8,5]],
[[3,5]],
[[9,0]],[[9,8]],[[1,8]],
[[1,0]],
[[0,0]],[[8,0]],[[8,8]],
[[0,8]]] <-- here there are 3 Detect Squares: [[0,8], [0,0], [8,0], [8,8]]x2  (two [8,0])  and [[0,8], [0,0], [9,0], [9,8]]

What is wrong? The test case anser is 2, not 3.

Comments (0)