Searching Algorithms: Binary Search - Typical Problems - Competitive Exam Level

Download Q&A
Q. If the binary search algorithm is implemented recursively, what is the space complexity due to recursion?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. What is the maximum number of iterations needed to find an element in an array of size 32 using binary search?
  • A. 5
  • B. 6
  • C. 7
  • D. 8
Showing 1 to 2 of 2 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely