Suppose π = β©π[0], β¦ , π[π β 1]βͺ is an array of length π, where all theβ¦
PYQ GATE 2015
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 133 students.
Sign up free to check your answer
Sign up freeLoading lessonβ¦

