Ifound the code as follow in python3:
def twoSum(self, nums: List[int], target: int) -> List[int]:
return sum(nums)
As I know for python def, we only need follow:
def twoSum(self, nums, target):
return sum(nums)
what is the nums: List[int], target: int and ->List[int] means? Are those new features of python 3? I never see those.
Thanks,