Suppose π = β©π[0], β¦ , π[π β 1]βͺ is an array of length π, where all theβ¦
GATE Β· 2015 Β· CS Β· Set 3 Β· Computer Science & IT
Suppose π = β©π[0], β¦ , π[π β 1]βͺ is an array of length π, where all the entries are from the set {0, 1}. For any positive integers π and π, consider the following pseudocode.

If π = 4, π = β©1, 0, 1, 1βͺ, π = 2 and π = 8, then the output of DOSOMETHING(π, π, π) is __________________.
Attempted by 111 students.
Sign up free to check your answer
Sign up freeLoading lessonβ¦