parameters: (self, nums, target)
return_statement: return head >= 0 and tail < len(nums) and nums[tail] == target
docstring: :type nums: List[int]
          :type target: int
          :rtype: bool
docstring_summary: :type nums: List[int]
          :type target: int
          :rtype: bool
docstring_tokens: : type nums : List [ int ] : type target : int : rtype : bool
function: def isMajorityElement(self, nums, target):
          """
          :type nums: List[int]
          :type target: int
          :rtype: bool
          """
          
          head = self.headOfElement(nums, target) #O(logN)
          tail = len(nums) // 2 + head #O(1)
          
          return head >= 0 and tail < len(nums) and nums[tail] == target
function_tokens: def isMajorityElement ( self , nums , target ) : head = self . headOfElement ( nums , target ) #O(logN) tail = len ( nums ) // 2 + head #O(1) return head >= 0 and tail < len ( nums ) and nums [ tail ] == target