The Silent Locator
A easy Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L3
Interview Prompt
Given a sorted list of integers and a target, return the index of target (any if duplicates) or -1 if not found. Use binary search; must run in O(log n).
Summary
Every lookup should cost you less than the one before it.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision