Smarter Engineers 💡

Smarter Engineers 💡

Share this post

Smarter Engineers 💡
Smarter Engineers 💡
Binary Search and The Fake Coin Puzzle
💡 Algorithmia

Binary Search and The Fake Coin Puzzle

Algorithmically Speaking - #10: What most people know about binary search, the true power of mastering it, and an interesting puzzle for your brain.

Alberto Gonzalez's avatar
Kanaye Varma's avatar
Alberto Gonzalez
and
Kanaye Varma
Aug 09, 2024
∙ Paid
15

Share this post

Smarter Engineers 💡
Smarter Engineers 💡
Binary Search and The Fake Coin Puzzle
6
9
Share

Hello there, and welcome to a new edition of Algorithmically Speaking!

Today we are going to be talking about binary search. I know you probably know about it already, but… do you?

I’ve met several software engineers working on some of the best companies in the world that still don’t know how to use binary search properly.

Believe it or not, most people think that the only application of binary search is to look for an element on a sorted array. And, while that might be one of the most used applications, it is certainly not the only one.

Stick around to discover why binary search is important and learn how to use it in the most general case. Here’s what we will cover today:

  • 🧭 What Most People Know About Binary Search — an introduction to the most common use of binary search.

  • ⭐ The True Power of Binary Search — a comprehensive guide to when and how to apply binary search beyond its most common use case.

  • 💰 A Puzzle with Coins — a programming puzzle for you to apply what you learn today.

Keep reading with a 7-day free trial

Subscribe to Smarter Engineers 💡 to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
A guest post by
Kanaye Varma
I love coding, and all things tech in general. Writing about coding is my passion, I think that it unlocks a new realm of problem solving I want to help people see.
Subscribe to Kanaye
© 2025 Alberto Gonzalez
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share