Mysterious Function
Computer Science Level 5Chris received the following algorithm written in Python :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 

It takes in an integer list \(L\) and initially \(i=0\) and \(j=\text{len}(L) > 1\). What does this algorithm returns?
Details and Assumptions
 Assume that
INF
is larger than any integer in \(L\).
Your answer seems reasonable.
Find out if you're right!
Sign up to access problem solutions.
That seems reasonable.
Find out if you're right!
Already have an account? Log in here.