Tag

binary search

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Apr 24, 2025 · Fundamentals

Master Recursion: Classic Python Examples and Core Concepts

This article introduces recursion, explains its definition and key characteristics, and demonstrates classic Python examples such as factorial calculation, Fibonacci sequence generation, and binary search, helping readers grasp how recursion simplifies complex problems compared to iterative loops.

Pythonalgorithmbinary search
0 likes · 8 min read
Master Recursion: Classic Python Examples and Core Concepts
Java Tech Enthusiast
Java Tech Enthusiast
Dec 1, 2024 · Fundamentals

LeetCode 34: Binary Search Range

LeetCode 34 asks for the first and last indices of a target in a non‑decreasing integer array, returning [-1,-1] when absent, and can be solved in O(log n) time by applying two binary‑search passes—one locating the leftmost occurrence and the other the rightmost—illustrated with Java, C++, and Python implementations.

C++JavaLeetCode
0 likes · 8 min read
LeetCode 34: Binary Search Range
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 29, 2024 · Fundamentals

Binary Search: Fundamentals, Common Implementations, and Applications

Binary search is an efficient O(log n) algorithm for locating elements in sorted arrays or intervals, and this article explains its basic principles, recursive and iterative implementations, handling of edge cases, applications such as log file indexing, and extensions to rotated arrays and variable‑length data.

Searchalgorithmbinary search
0 likes · 18 min read
Binary Search: Fundamentals, Common Implementations, and Applications
Architect's Guide
Architect's Guide
Oct 19, 2023 · Databases

Understanding Database Indexes: Storage Principles, Types, and Optimization Techniques

This article explains how computer storage works, why database indexes dramatically speed up queries, the mechanics of binary search, the differences between clustered and non‑clustered indexes, common pitfalls of over‑indexing, and practical SQL optimization strategies to avoid full table scans and index invalidation.

DatabaseSQL Optimizationbinary search
0 likes · 12 min read
Understanding Database Indexes: Storage Principles, Types, and Optimization Techniques
php中文网 Courses
php中文网 Courses
Sep 4, 2023 · Fundamentals

Binary Search: Explanation and PHP Implementations

Binary search is an efficient O(log n) algorithm for locating a target value in a sorted array, and this article explains its step-by-step process, provides iterative and recursive PHP code examples, and discusses their usage and performance considerations.

O(log n)PHPalgorithm
0 likes · 6 min read
Binary Search: Explanation and PHP Implementations
Selected Java Interview Questions
Selected Java Interview Questions
Jan 27, 2023 · Databases

Understanding Database Indexes: How They Work and Improve Query Performance

This article explains the evolution of data storage, the fundamentals of computer storage devices, how database indexes function like a book's table of contents, the role of binary search, the benefits and drawbacks of indexes, and practical SQL optimization techniques to enhance query speed.

DatabaseSQL Optimizationbinary search
0 likes · 12 min read
Understanding Database Indexes: How They Work and Improve Query Performance
Top Architect
Top Architect
Nov 17, 2022 · Databases

Understanding Database Indexes: Storage Principles, Index Types, and SQL Optimization Techniques

This article explains how data is physically stored, why database indexes dramatically speed up queries through sorted structures and binary search, discusses clustered versus non‑clustered indexes, their trade‑offs, and provides practical SQL optimization tips to avoid common pitfalls.

DatabaseSQL Optimizationbinary search
0 likes · 13 min read
Understanding Database Indexes: Storage Principles, Index Types, and SQL Optimization Techniques
Top Architect
Top Architect
Oct 25, 2022 · Databases

Understanding Database Indexes: Storage Principles, Binary Search, and Optimization Techniques

This article explains how databases store data on various storage media, why indexes dramatically speed up queries through sorted structures and binary search, discusses different index types such as clustered indexes, and outlines common SQL optimization practices while warning against excessive indexing and typical pitfalls.

Database IndexPerformance TuningSQL Optimization
0 likes · 12 min read
Understanding Database Indexes: Storage Principles, Binary Search, and Optimization Techniques
Laravel Tech Community
Laravel Tech Community
Nov 5, 2020 · Fundamentals

Understanding Binary Search: Efficiency, Simple Implementation, and Common Variants

This article explains the O(log N) efficiency of binary search, provides a clear template implementation in code, highlights common pitfalls, and presents two useful variants for finding the first equal or first greater‑or‑equal element in a sorted array.

Code ExampleData StructuresSearch
0 likes · 7 min read
Understanding Binary Search: Efficiency, Simple Implementation, and Common Variants
Python Programming Learning Circle
Python Programming Learning Circle
Feb 20, 2020 · Fundamentals

Binary Search Algorithm Explanation

This article explains the binary search algorithm for locating a target element in a sorted array, describing its midpoint‑starting process, halving of the search range, termination conditions, and includes a simple example with its output.

Searchalgorithmbinary search
0 likes · 3 min read
Binary Search Algorithm Explanation
Selected Java Interview Questions
Selected Java Interview Questions
Feb 11, 2020 · Fundamentals

Binary Search Algorithms: Basic Implementation, First/Last Occurrence, and Rotated Array Search

This article explains the classic binary search algorithm, shows how to find the first and last occurrence of a target in a sorted array, presents a combined solution, and extends the technique to efficiently locate elements in a rotated sorted array using one or two binary searches.

C++Data Structuresalgorithm
0 likes · 11 min read
Binary Search Algorithms: Basic Implementation, First/Last Occurrence, and Rotated Array Search
Java Captain
Java Captain
Apr 21, 2019 · Fundamentals

Binary Search and Its Variants in Java

This article explains the classic binary search algorithm, presents a Java implementation, and details multiple binary‑search variants—including finding first/last equal elements, elements less than or greater than a key—while providing clear code examples and guidance on boundary handling.

Javaalgorithmbinary search
0 likes · 9 min read
Binary Search and Its Variants in Java