Bloomberg Binary Search Questions

109 binary search problems asked at Bloomberg interviews

Easy (23)Medium (63)Hard (23)

Questions

TitleDifficulty
Median of Two Sorted ArraysHard
Search in Rotated Sorted ArrayMedium
Find Peak ElementMedium
Koko Eating BananasMedium
Find First and Last Position of Element in Sorted ArrayMedium
Sqrt(x)Easy
Single Element in a Sorted ArrayMedium
Search Insert PositionEasy
Search a 2D MatrixMedium
Valid Triangle NumberMedium
Binary SearchEasy
Missing NumberEasy
Intersection of Two ArraysEasy
Longest Increasing SubsequenceMedium
Find the Duplicate NumberMedium
Frequency of the Most Frequent ElementMedium
Minimum Size Subarray SumMedium
Two Sum II - Input Array Is SortedMedium
Capacity To Ship Packages Within D DaysMedium
Peak Index in a Mountain ArrayMedium
Split Array Largest SumHard
Reverse PairsHard
Search in Rotated Sorted Array IIMedium
Max Consecutive Ones IIIMedium
Minimum Number of Days to Make m BouquetsMedium
Search a 2D Matrix IIMedium
Maximum Profit in Job SchedulingHard
Arranging CoinsEasy
Kth Missing Positive NumberEasy
First Bad VersionEasy
Find Minimum in Rotated Sorted ArrayMedium
Find in Mountain ArrayHard
Design Hit CounterMedium
Partition Array Into Two Arrays to Minimize Sum DifferenceHard
132 PatternMedium
Subarray Product Less Than KMedium
Sum of Square NumbersMedium
HeatersMedium
Count of Smaller Numbers After SelfHard
Find K Closest ElementsMedium
Guess Number Higher or LowerEasy
Time Based Key-Value StoreMedium
Find K-th Smallest Pair DistanceHard
Check If N and Its Double ExistEasy
House Robber IVMedium
Kth Smallest Product of Two Sorted ArraysHard
Valid Perfect SquareEasy
Number of Subsequences That Satisfy the Given Sum ConditionMedium
Minimum Limit of Balls in a BagMedium
Intersection of Two Arrays IIEasy
Count Negative Numbers in a Sorted MatrixEasy
Shortest Subarray to be Removed to Make Array SortedMedium
Maximum Candies Allocated to K ChildrenMedium
Count the Number of Fair PairsMedium
Find a Peak Element IIMedium
Number of Matching SubsequencesMedium
Count Complete Tree NodesEasy
Find the Smallest Divisor Given a ThresholdMedium
Search Suggestions SystemMedium
K-diff Pairs in an ArrayMedium
Find Smallest Letter Greater Than TargetEasy
Special Array With X Elements Greater Than or Equal XEasy
Range Sum of Sorted Subarray SumsMedium
Maximum Length of Repeated SubarrayMedium
Zero Array Transformation IIMedium
Path With Minimum EffortMedium
Smallest Subarrays With Maximum Bitwise ORMedium
Maximum Number of Events That Can Be Attended IIHard
Sum of Mutated Array Closest to TargetMedium
Successful Pairs of Spells and PotionsMedium
Random Pick with WeightMedium
Earliest Finish Time for Land and Water Rides IEasy
Closest Equal Element QueriesMedium
Minimum Number of Removals to Make Mountain ArrayHard
Shortest Subarray with Sum at Least KHard
Separate Squares IMedium
Fruits Into Baskets IIIMedium
Maximum Total Damage With Spell CastingMedium
Maximum Tastiness of Candy BasketMedium
Avoid Flood in The CityMedium
Fair Candy SwapEasy
My Calendar IMedium
Max Sum of Rectangle No Larger Than KHard
Find the Distance Value Between Two ArraysEasy
Super Egg DropHard
Online ElectionMedium
Nth DigitMedium
Find Right IntervalMedium
Minimized Maximum of Products Distributed to Any StoreMedium
Longest Duplicate SubstringHard
Count Pairs Whose Sum is Less than TargetEasy
Reach a NumberMedium
Maximum Number of Tasks You Can AssignHard
Special Array IIMedium
Count Good Triplets in an ArrayHard
Longest Arithmetic SubsequenceMedium
Minimum Interval to Include Each QueryHard
Find Beautiful Indices in the Given Array IMedium
Minimum Number of Operations to Make Array ContinuousHard
Russian Doll EnvelopesHard
Maximum Running Time of N ComputersHard
Closest Binary Search Tree ValueEasy
Get Equal Substrings Within BudgetMedium
Maximum Frequency of an Element After Performing Operations IIHard
Kth Smallest Element in a Sorted MatrixMedium
Minimum Common ValueEasy
The K Weakest Rows in a MatrixEasy
Maximum Frequency of an Element After Performing Operations IMedium
Maximize the Distance Between Points on a SquareHard

Showing 109 questions