LeetCode 1150. Check If a Number Is Majority Element in a Sorted Array
Description https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array/ Given an array nums sorted in non-decreasing order, and a number target, return True if and only if target is a majority element. A majority element is an element…