找单独的数

66 阅读1分钟

public class Main {

public static int solution(int[] cards) {

// Edit your code here

return 0;

}

public static void main(String[] args) {

// Add your test cases here

System.out.println(solution(new int[]{1, 1, 2, 2, 3, 3, 4, 5, 5}) == 4);

System.out.println(solution(new int[]{0, 1, 0, 1, 2}) == 2);

}

}