LeetCode Solutions/February 2022 LeetCoding Challenge/Majority Element.java
<gh_stars>0class Solution {
    public int majorityElement(int[] nums) {
        Arrays.sort(nums);
        return nums[nums.length/2];
    }
}