?? LeetCode Binary Search I
Introduction
This Repository contains my solutions to Binary Search I study plan on LeetCode.
- I strongly advise you to try to solve problems on your own before looking at the solutions provided here.
- Solutions and approaches may not be optimal.
- All Solutions here are in C++.
- Checkout my LeetCode profile at michaelehab
Solutions
Day 1
- Binary Search
- Guess Number Higher or Lower
Day 2
- Search Insert Position
- Peak Index in a Mountain Array
Day 3
- Valid Perfect Square
- Find the Distance Value Between Two Arrays
Day 4
- Sqrt(x)
- Find Smallest Letter Greater Than Target
Day 5
- First Bad Version
- Find First and Last Position of Element in Sorted Array
Day 6
- Arranging Coins
- Kth Missing Positive Number
Day 7
- Two Sum II - Input Array Is Sorted
- Special Array With X Elements Greater Than or Equal X
Day 8
- Count Negative Numbers in a Sorted Matrix
- Search a 2D Matrix
Day 9
- The K Weakest Rows in a Matrix
- Check If N and Its Double Exist
Day 10
- Intersection of Two Arrays II
- Sum of Square Numbers
Day 11
- Maximum Distance Between a Pair of Values
- Search in Rotated Sorted Array
Day 12
- Find Minimum in Rotated Sorted Array