Binary Search Algorithm in 100 Seconds

Опубликовано: 14 September 2026
на канале: Fireship
805,703
40k

Binary Search is an algorithm that can find the index of an element in a sorted array data structure. You've likely used Binary Search it in everyday life without even realizing it.

#compsci #programming #100SecondsOfCode

🔗 Resources

Binary Search https://en.wikipedia.org/wiki/Binary_...
Big-O in 100 Seconds    • Big-O Notation in 100 Seconds  
Recursion in 100 seconds    • Recursion in 100 Seconds  

🔥 Get More Content - Upgrade to PRO

Upgrade to Fireship PRO at https://fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.

🎨 My Editor Settings

Atom One Dark
vscode-icons
Fira Code Font

🔖 Topics Covered

Binary Search in JavaScript
How does binary search work?
When was binary search first used?
How code recursive binary search?
Big-O Time complexity of binary search