In this example, we prove that the maximum index of

[3,[2,[1,[]]]]

is 0.

First, we prove that the maximum value of

[3,[2,[1,[]]]]

is 3. Then we find the index of 3 in the same list. 3 is in index 0.

Quiz (1 point)

Prove that:
index of the maximum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = 0

The following properties may be helpful:

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.

Step Claim Reason (optional) Error Message (if any)
1
2
3
4
5
6
7
8
9
10

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