Secondary Loop BS
Binary search as the inner step of an outer loop. The outer pass walks elements (or rows); for each one we bisect into a sorted structure. Total cost is O(N log M) - the loop times the search.
Bisect Derivatives
Loop one value, binary-search for its partner (complement, double, or matching boundary).
167. Two Sum II - Input Array Is Sorted
1855. Maximum Distance Between a Pair of Values
1346. Check If N and Its Double Exist
Bisect Derivatives in a 2D Matrix
Each row is independently sorted, so bisect row by row.
1351. Count Negative Numbers in a Sorted Matrix
1337. The K Weakest Rows in a Matrix
Intersection
Iterate the first array (or row), and binary-search every other one for the same value.
349. Intersection of Two Arrays
350. Intersection of Two Arrays II
1198. Find Smallest Common Element in All Rows
1213. Intersection of Three Sorted Arrays
Custom Bisect
When the input is an opaque interface, hand-roll the bisect against its accessor.