169-majority-element

DevGod
Vtuber
/** * @param {number[]} nums * @return {number} */var majorityElement = function(nums) { return _.sortBy(nums)[ Math.floor( (nums.length)/2 ) ];};
/** * @param {number[]} nums * @return {number} */var majorityElement = function(nums) { return _.sortBy(nums)[ Math.floor( (nums.length)/2 ) ];};