审题: 数字大于0,出现次数超过一半,且一定有解,那么每次移除两个不一样的数字即可,剩下的就是答案 为了节省空间,所有处理过的数据标记为-1 fun MoreThanHalfNum_Solution3(numbers: IntArray): Int { // println("input array count: ${numbers.size},list: ${numbers.contentToString()}") val size = numbers.size if(size== 1) return numbers[0]; for (a in 0..size...