# 881from typing import List
classSolution:defnumRescueBoats(self, people: List[int], limit:int)->int:if people isNoneorlen(people)==0:return0
people.sort()
l =0
r =len(people)-1
res =0while l <= r:if people[l]+ people[r]<= limit:
l = l +1
r = r -1
res +=1return res