Recursion

AP Computer Science A· difficulty 4/5

Recursive depth for binary search of size 1024 (worst case):

  • A

    Infinite

  • B

    1024

  • C

    20

  • D

    10

    check_circle

Explanation

log₂(1024) = 10 levels.

Want 10 more like this — adaptive to your weak spots?

Related questions