Assume that numbers is a large array of integers, currentlyholding N values in locations 0 through N – 1. Describe the orderof growth (worst case) of each of the following operations, using Onotation.
- Set location N of numbers to 17.
- Shift all values in the numbers array to the “right” onelocation to make room at location 0 for a new number withoutdisrupting the order of the current values; insert the number 17into location 0.
- Randomly choose a location L from 0 to N – 1; Shift all thevalues in the numbers array, from location L to location N – 1, tothe right
OR
PayPal Gateway not configured
ORPayPal Gateway not configured