1196. How Many Apples Can You Put into the Basket
You have some apples, where arr[i] is the weight of the i-th apple. You also have a basket that can carry up to 5000 units of weight.
arr[i]
i
5000
360. Sort Transformed Array
Given a sorted integer array nums and three integers a, b and c, apply a quadratic function of the form f(x) = ax2 + bx + c to each element nums[i] in the array, and return the array in a sorted order.
nums
a
b
c
f(x) = ax2 + bx + c
nums[i]