code: def removeDuplicates(self, nums: List[int]) -> int:
      l = 1
  
      for r in range(1, len(nums)):
          if nums[r] != nums[r - 1]:
              nums[l] = nums[r]
              l += 1
      return l
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.removeDuplicates(nums) and returns: l