1
answer
0
watching
129
views
10 Nov 2019

A function takes an input and returns an output. In math, an example of this is f(x) = 2x^2 – 1. This function squares the input, multiplies it by 2 and then subtracts 1. In computer science, a very common function is sort(input) which takes a list or array of numbers and returns them in ascending order. For sort(input) = [234, 432, 509, 1002, 10000], how many distinct, unsorted lists will result in the specified output? (Use only a, b, c, or d as answer) a. 1 b. 5 c. 25 d. 120

For unlimited access to Homework Help, a Homework+ subscription is required.

Deanna Hettinger
Deanna HettingerLv2
17 Sep 2019

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in

Weekly leaderboard

Start filling in the gaps now
Log in