LearnFrenzy
Sign in Take a free test

Python Coding Interview Questions · Coding Interview Concepts MCQ · Question 5

Requirement for binary search Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 5 Back to Exercise

What must be true of a list before you can binary-search it?

  • A It must have an even length
  • B It must contain unique numbers only
  • C It must be sorted Correct
  • D It must be a tuple
Correct Answer: Option C

Each step discards half the range based on the ordering.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links