functionMoreThanHalfNum_Solution(numbers){let result,count=0;for(let i =0;i <numbers.length;i++){if(count ===0){ result = numbers[i]; count++; }else{if(result === numbers[i]){ count++; }else{ count--; } } }let times =numbers.filter(x => x === result).length;return times >Math.floor(numbers.length>>1) ? result :0;}