Charles Flynn
12/13/2022, 1:39 PMCharles Flynn
12/13/2022, 1:40 PM- Compare [2,3,4] vs 4
- Mixed types; convert right to [4] and retry comparison
- Compare [2,3,4] vs [4]
- Compare 2 vs 4
- Left side is smaller, so inputs are in the right order
But [2, 3, 4] runs out of elements first.
If the left list runs out of items first, the inputs are in the right order.
I get that at this point i’ve converted the literal 4 to a list. But it’s worded in such a way we are now supposed to compare them as a list.ephemient
12/13/2022, 1:45 PMephemient
12/13/2022, 1:46 PMCharles Flynn
12/13/2022, 1:49 PMephemient
12/13/2022, 1:50 PMCharles Flynn
12/13/2022, 1:51 PMCharles Flynn
12/13/2022, 1:53 PMCharles Flynn
12/13/2022, 1:53 PM== Pair 1 ==
- Compare [1,1,3,1,1] vs [1,1,5,1,1]
- Compare 1 vs 1
- Compare 1 vs 1
- Compare 3 vs 5
- Left side is smaller, so inputs are in the right order
Charles Flynn
12/13/2022, 1:53 PMephemient
12/13/2022, 1:54 PMDavio
12/13/2022, 3:10 PMephemient
12/14/2022, 4:48 AM