Given an integer array nums sorted in non decreasing order and an integer target, return true if target is a majority element of nums, or false otherwise.
A majority element is an element that appears strictly more than nums.length
Constraints:
nums.length
nums[i], target
nums is sorted in non decreasing order.
Given an integer array nums sorted in non decreasing order and an integer target, return true if target is a majority element of nums, or false otherwise.
A majority element is an element that appears strictly more than nums.length
Constraints:
nums.length
nums[i], target
nums is sorted in non decreasing order.