Maximum Index Of A List

index of the maximum value in stack els = index of value (maximum value in stack els) in els

This property says that to compute the maximum index, we first compute the maximum value of the list, and then find the index of that value in the list.

Examples

index of the maximum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = index of value (maximum value in stack [ 3, [ 2, [ 1, [ ] ] ] ]) in [ 3, [ 2, [ 1, [ ] ] ] ]

index of the maximum value in stack [ 420, [ 340, [ 280, [ 160, [ 320, [ ] ] ] ] ] ] = index of value (maximum value in stack [ 420, [ 340, [ 280, [ 160, [ 320, [ ] ] ] ] ] ]) in [ 420, [ 340, [ 280, [ 160, [ 320, [ ] ] ] ] ] ]

index of the maximum value in stack [ 23, [ 7, [ 47, [ 3, [ ] ] ] ] ] = index of value (maximum value in stack [ 23, [ 7, [ 47, [ 3, [ ] ] ] ] ]) in [ 23, [ 7, [ 47, [ 3, [ ] ] ] ] ]

Quiz (1 point)

What is the maximum value of the following list?

[ 420, [ 340, [ 280, [ 160, [ 320, [ ] ] ] ] ] ]

Become a subscriber to save your progress, see the correct answer, and more!
Quiz (1 point)

What is the maximum index of the following list?

[ 420, [ 340, [ 280, [ 160, [ 320, [ ] ] ] ] ] ]

Become a subscriber to save your progress, see the correct answer, and more!

Comments

Please log in to add comments