Pair the heaviest with the lightest to minimize the number of rescue boats.
Constraints
Example
```python >>> num_rescue_boats([1,2], 3) 1 >>> num_rescue_boats([3,2,2,1], 3) 3 >>> num_rescue_boats([3,5,3,4], 5) 4 ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints