2
def searchRange(self, nums: List[int], target: int) -> List[int]:3
# if target is not in nums list, we simply return [-1,-1]9
# iterate nums for the first time, if we found nums[i] matches with target10
# append the index i to result, break the for loop11
# because we only care the first and last index of target in nums12
for i in range(len(nums)):17
# loop through nums backward, if we found nums[j] matches target18
# append j to result and break the for loop19
for j in range(len(nums) - 1, -1, -1):