---
title: "#binary-search articles | Hashnode"
description: "Explore 98 articles tagged #binary-search on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/binary-search"
---

Tag

# #binary-search

98 posts · 1 followers

[Niranjan](https://hashnode.com/@niranjansatish) · [1d ago](https://hashnode.com/posts/binary-search-no-memorizing-no-crying-1/6af72886314439d6f61372e3)

### [Binary Search: No Memorizing, No Crying - 1](https://beyondthesyntax.hashnode.dev/binary-search-no-memorizing-no-crying-1?utm_source=hashnode&utm_medium=feed)

Element & Boundary Search: why <= and < are both right

26 min read · [beyondthesyntax.hashnode.dev](https://beyondthesyntax.hashnode.dev/binary-search-no-memorizing-no-crying-1?utm_source=hashnode&utm_medium=feed)

[0xmu0](https://hashnode.com/@0xmu0) · [Oct 18](https://hashnode.com/posts/binary-search-from-finding-a-number-to-finding-a-boundary/6ad4f840180fea0c9078c106)

### [Binary Search: From Finding a Number to Finding a Boundary](https://reasoninglog.hashnode.dev/binary-search-from-finding-a-number-to-finding-a-boundary?utm_source=hashnode&utm_medium=feed)

Deriving binary search through reasoning, mathematical proofs, loop invariants, and Boolean boundaries, from first principles.

28 min read · [reasoninglog.hashnode.dev](https://reasoninglog.hashnode.dev/binary-search-from-finding-a-number-to-finding-a-boundary?utm_source=hashnode&utm_medium=feed)

[Utkarsh Shrivastava](https://hashnode.com/@utkarshinobi) · [Oct 11](https://hashnode.com/posts/binary-search-without-the-off-by-one-guesswork/6acaf8db8da29a052167e620)

### [Binary search without the off-by-one guesswork](https://basecase-utkarsh.hashnode.dev/binary-search-without-the-off-by-one-guesswork?utm_source=hashnode&utm_medium=feed)

Binary search is easy to explain and easy to get wrong. left <= right or left < right? mid or mid + 1? Return left or right? Here's my first attempt at LeetCode 981: Time Based Key-Value Store, which

3 min read · [basecase-utkarsh.hashnode.dev](https://basecase-utkarsh.hashnode.dev/binary-search-without-the-off-by-one-guesswork?utm_source=hashnode&utm_medium=feed)

[Zenub Naqvi](https://hashnode.com/@zenub07) · [Sep 13](https://hashnode.com/posts/the-line-of-code-that-broke-java-s-standard-library-for-nine-years/6aa68fc18abd5980ba5fd473)

### [The Line of Code That Broke Java's Standard Library for Nine Years](https://zenubnaqvi.hashnode.dev/the-line-of-code-that-broke-java-s-standard-library-for-nine-years?utm_source=hashnode&utm_medium=feed)

A beginner's breakdown of binary search, plus the real overflow bug that hid in Java's standard library for nine years.

7 min read · [zenubnaqvi.hashnode.dev](https://zenubnaqvi.hashnode.dev/the-line-of-code-that-broke-java-s-standard-library-for-nine-years?utm_source=hashnode&utm_medium=feed)

[Abirami Sri](https://hashnode.com/@abiramisri) · [Sep 11](https://hashnode.com/posts/day-9-of-my-30-day-dsa-journey-binary-search-patterns/6aa43bb3da1787e2c3ff364f)

### [Day 9 of My 30-Day DSA Journey - Binary Search Patterns](https://abi-blog.hashnode.dev/day-9-of-my-30-day-dsa-journey-binary-search-patterns?utm_source=hashnode&utm_medium=feed)

Day 9 of my DSA journey with JavaScript: solve 5 LeetCode problems using Binary Search, boundary search, and modified Binary Search.

12 min read · [abi-blog.hashnode.dev](https://abi-blog.hashnode.dev/day-9-of-my-30-day-dsa-journey-binary-search-patterns?utm_source=hashnode&utm_medium=feed)

[Abstract Algorithms](https://hashnode.com/@abstractalgorithms) · [Mar 29](https://hashnode.com/posts/binary-search-patterns/69c8c2277784a79a02beed24)

### [Binary Search Patterns: Five Variants Every Senior Engineer Knows](https://abstractalgorithms.hashnode.dev/binary-search-patterns?utm_source=hashnode&utm_medium=feed)

Binary search has five distinct patterns — classic, leftmost, rightmost, rotated arrays, and 2D matrices.

17 min read · [abstractalgorithms.hashnode.dev](https://abstractalgorithms.hashnode.dev/binary-search-patterns?utm_source=hashnode&utm_medium=feed)

[Akshat Jain](https://hashnode.com/@akshatjme) · [Feb 25](https://hashnode.com/posts/why-binary-search-is-preferred-over-ternary-search-despite-logn/699f243de6a0ab51069a48d7)

### [Why Binary Search Is Preferred Over Ternary Search Despite log₃(n)](https://akshatjme.hashnode.dev/why-binary-search-is-preferred-over-ternary-search-despite-logn?utm_source=hashnode&utm_medium=feed)

Algorithms rarely fail because they are incorrect.They fail because assumptions that look valid mathematically do not survive contact with real machines. Ternary search is a classic example. Yet binary search remains the default — in standard librari...

4 min read · [akshatjme.hashnode.dev](https://akshatjme.hashnode.dev/why-binary-search-is-preferred-over-ternary-search-despite-logn?utm_source=hashnode&utm_medium=feed)

[Akshay Dubey](https://hashnode.com/@devAksh) · [Feb 14](https://hashnode.com/posts/how-i-finally-understood-binary-search-from-searching-to-el/699027ef0358313caf03799a)

### [How I Finally Understood Binary Search: From Searching to Eliminating](https://binary-search-beyond-just-searching.hashnode.dev/how-i-finally-understood-binary-search-from-searching-to-el?utm_source=hashnode&utm_medium=feed)

My Initial Understanding of Binary Search In my problem-solving journey as an aspiring problem solver and software developer, I came across the Binary Search algorithm — just like many other developers. Initially, whenever I read a problem statement ...

4 min read · [binary-search-beyond-just-searching.hashnode.dev](https://binary-search-beyond-just-searching.hashnode.dev/how-i-finally-understood-binary-search-from-searching-to-el?utm_source=hashnode&utm_medium=feed)

[Brian Li](https://hashnode.com/@brianlii) · [Dec 16, 2025](https://hashnode.com/posts/leetcode-writeup-74-search-a-2d-matrix/6940e113ad57c47597ea0952)

### [Leetcode Writeup 74. Search a 2D Matrix](https://leetcode-writeup-brianlii.hashnode.dev/leetcode-writeup-74-search-a-2d-matrix?utm_source=hashnode&utm_medium=feed)

Write up for Leetcode 74. Search a 2D Matrix. We can perform binary search on the flattened matrix.

1 min read · [leetcode-writeup-brianlii.hashnode.dev](https://leetcode-writeup-brianlii.hashnode.dev/leetcode-writeup-74-search-a-2d-matrix?utm_source=hashnode&utm_medium=feed)

[Rajesh Gurajala](https://hashnode.com/@rajesh6) · [Oct 21, 2025](https://hashnode.com/posts/binary-search/68f71702e89b2a1c90e2be3f)

### [Binary Search](https://learning-dsa.hashnode.dev/binary-search?utm_source=hashnode&utm_medium=feed)

Binary Search is used on sorted Arrays. 🧩 Binary Search works if : There exists a monotonic relationship in your search space —that is, a point divides the domain into two consistent halves: The left half satisfies one condition (e.g., false), Th...

13 min read · [learning-dsa.hashnode.dev](https://learning-dsa.hashnode.dev/binary-search?utm_source=hashnode&utm_medium=feed)
