Quiz (1 point)
Prove that:
index of the maximum value in stack [ x, [ ] ] = 0
The following properties may be helpful:
- index of the maximum value in stack els = index of value (maximum value in stack els) in els
- maximum value in stack [ x, [ ] ] = x
- index of value x in [ x, [ ] ] = 0
if maximum value in stack [ x, [ ] ] = x, then index of value (maximum value in stack [ x, [ ] ]) in [ x, [ ] ] = index of value x in [ x, [ ] ]
if the following are true:
- a = b
- b = c
- c = d
then a = d
Please write your proof in the table below. Each row should contain one claim. The last claim is the statement that you are trying to prove.