Binary Search/Easy
Binary SearchFREE TRACK
Time: O(log N)Space: O(1)
Initialize Binary Search Bounds
Array is sorted. Set Low = 0 (val -1) and High = 5 (val 12). Target = 9.
Array Elements & Pointers
Low
-1
[0]0
[1]3
[2]5
[3]9
[4]High
12
[5]Live Variables & Invariants
target:9
low:0
high:5
Step 1 / 520%
Solution Code
Custom Test Case Runner
Input your custom values and visualize step-by-step trace
Quick Presets:
AI DSA Coach
Contextual Tutor for Binary Search
Hello! I am your AI DSA Tutor for **Binary Search** (Binary Search). Ask me anything about this algorithm, time complexity, or request a step hint!