Categories
Algorithms Data Structures

Linear Search vs Binary Search: A Quick Guide with Examples

I’ve recently started reading A Common-Sense Guide to Data Structures and Algorithms by Jay Wengrow and the gentle introduction uses linear search and binary search as simple algorithms that serve as good examples to compare and contrast performance. Let me see if I can explain what I learned!