D7
Binary Search
50 stations · 28hSearch on sorted data and binary search on the answer. 50 interview problems explained by codestorywithMIK (28h of video), grouped into 6 patterns such as Classic, Lower/Upper Bound, Rotated Array.
Start this line →- Classic26
- Lower/Upper Bound1
- Rotated Array5
- Binary Search on Answer12
- Peak & Bitonic3
- 2D3
Classic
0 of 26 passed- Single Element in a Sorted ArrayLC 540 · 24:50MediumGoogle · Amazon · +16 more companiesLeetCode ↗ (opens in a new tab)
- Guess Number Higher or Lower -(Microsoft , Google (with variation)) : Explanation ➕ Live CodingLC 374 · 3:59EasyGoogle · Amazon · +5 more companiesLeetCode ↗ (opens in a new tab)
- Kth Missing Positive NumberLC 1539 · 23:15EasyGoogle · Amazon · +7 more companiesLeetCode ↗ (opens in a new tab)
- Binary Search - (Recursive + Iterative)LC 704 · 13:12EasyGoogle · Amazon · +11 more companiesLeetCode ↗ (opens in a new tab)
- Successful Pairs of Spells and PotionsLC 2300 · 35:05MediumGoogle · Amazon · +5 more companiesLeetCode ↗ (opens in a new tab)
- Maximum Value at a Given Index in a Bounded ArrayLC 1802 · 37:08MediumGoogle · Meta · +4 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Cost to Make Array EqualLC 2448 · 21:08HardGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- Maximum Running Time of N ComputersLC 2141 · 30:03MediumGoogle · AppleLeetCode ↗ (opens in a new tab)
- Median of Two Sorted ArraysLC 4 · 41:52HardGoogle · Amazon · +42 more companiesLeetCode ↗ (opens in a new tab)
- Number of Flowers in Full BloomLC 2251 · 23:07HardGoogle · Uber · +5 more companiesLeetCode ↗ (opens in a new tab)
- Special Array With X Elements Greater Than or Equal XLC 1608 · 37:06EasyGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Most Profit Assigning WorkLC 826 · 37:28MediumGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Number of Days to Make m BouquetsLC 1482 · 25:56MediumGoogle · Amazon · +7 more companiesLeetCode ↗ (opens in a new tab)
- Magnetic Force Between Two BallsLC 1552 · 25:02MediumGoogle · Amazon · +7 more companiesLeetCode ↗ (opens in a new tab)
- Find K-th Smallest Pair DistanceLC 719 · 53:54HardGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Most Beautiful Item for Each QueryLC 2070 · 22:44MediumGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Count the Number of Fair PairsLC 2563 · 34:31MediumGoogle · Amazon · +5 more companiesLeetCode ↗ (opens in a new tab)
- Minimized Maximum of Products Distributed to Any StoreLC 2064 · 25:39MediumGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Limit of Balls in a BagLC 1760 · 42:13MediumGoogle · Amazon · +5 more companiesLeetCode ↗ (opens in a new tab)
- Maximum Candies Allocated to K ChildrenLC 2226 · 27:44MediumGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- House Robber IVLC 2560 · 38:12MediumGoogle · Amazon · +5 more companiesLeetCode ↗ (opens in a new tab)
- Maximum Number of Tasks You Can AssignLC 2071 · 47:11HardGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Maximum Fruits Harvested After at Most K StepsLC 2106 · 40:31HardGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Avoid Flood in The CityLC 1488 · 33:06MediumGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Separate Squares ILC 3453 · 41:43MediumGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Initial Energy to Finish TasksLC 1665 · 25:43HardGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
Lower/Upper Bound
0 of 1 passed- Find First & Last Position Of Element In Sorted Array-(LinkedIn, Amazon):Live Coding 🧑🏻💻👩🏻💻LC 34 · 18:30MediumGoogle · Amazon · +27 more companiesLeetCode ↗ (opens in a new tab)
Rotated Array
0 of 5 passed- Find Minimum in Rotated Sorted ArrayLC 153 · 14:05MediumGoogle · Amazon · +15 more companiesLeetCode ↗ (opens in a new tab)
- Search in Rotated Sorted ArrayLC 33 · 18:11MediumGoogle · Amazon · +47 more companiesLeetCode ↗ (opens in a new tab)
- Search in Rotated Sorted Array IILC 81 · 20:38MediumGoogle · Amazon · +8 more companiesLeetCode ↗ (opens in a new tab)
- Find Minimum in Rotated Sorted Array IILC 154 · 20:57HardGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
Binary Search on Answer
0 of 12 passed- Minimum Time to Complete TripsLC 2187 · 27:07MediumGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Koko Eating Bananas - (Leetcode - 875) - (Google, Microsoft) : Explanation ➕ Live CodingLC 875 · 21:40MediumGoogle · Amazon · +41 more companiesLeetCode ↗ (opens in a new tab)
- Minimize Maximum of Array - (META)LC 2439 · 33:24MediumAmazon · Microsoft · +3 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Speed to Arrive on TimeLC 1870 · 30:40MediumGoogle · Amazon · +41 more companiesLeetCode ↗ (opens in a new tab)
- Minimize the Maximum Difference of PairsLC 2616 · 31:06MediumGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- Apply Operations to Maximize Frequency ScoreLC 2968 · 1:06:03HardGoogle · PhonePe · +1 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Time to Repair CarsLC 2594 · 29:35MediumGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- Minimize the Maximum Adjacent Element DifferenceLC 3357 · 1:20:47HardAmazonLeetCode ↗ (opens in a new tab)
- Kth Smallest Product of Two Sorted ArraysLC 2040 · 59:31HardGoogle · Amazon · +3 more companiesLeetCode ↗ (opens in a new tab)
- Maximize the Minimum Powered CityLC 2528 · 59:31HardGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Maximize the Distance Between Points on a SquareLC 3464 · 1:16:30HardGoogle · BloombergLeetCode ↗ (opens in a new tab)
Peak & Bitonic
0 of 3 passed- Peak Index in a Mountain ArrayLC 852 · 19:16MediumGoogle · Amazon · +7 more companiesLeetCode ↗ (opens in a new tab)
- Find in Mountain ArrayLC 1095 · 19:18HardGoogle · Amazon · +4 more companiesLeetCode ↗ (opens in a new tab)
- Minimum Number of Seconds to Make Mountain Height ZeroLC 3296 · 26:25MediumGoogle · Amazon · +1 more companiesLeetCode ↗ (opens in a new tab)
2D
0 of 3 passed- Search a 2D MatrixLC 74 · 19:10MediumGoogle · Amazon · +18 more companiesLeetCode ↗ (opens in a new tab)
- Last Day Where You Can Still CrossLC 1970 · 29:09HardGoogle · Amazon · +2 more companiesLeetCode ↗ (opens in a new tab)
- Find the Safest Path in a GridLC 2812 · 1:04:56MediumGoogle · Amazon · +6 more companiesLeetCode ↗ (opens in a new tab)
All 50 stations in order
- 1.Find First & Last Position Of Element In Sorted Array-(LinkedIn, Amazon):Live Coding 🧑🏻💻👩🏻💻 (LeetCode 34)
- 2.Find Minimum in Rotated Sorted Array (LeetCode 153)
- 3.Search a 2D Matrix (LeetCode 74)
- 4.Single Element in a Sorted Array (LeetCode 540)
- 5.Find the Rotation Count in Rotated Sorted array-(Amazon, Flipkart, ABCO):Live Coding 🧑🏻💻👩🏻💻
- 6.Search in Rotated Sorted Array (LeetCode 33)
- 7.Search in Rotated Sorted Array II (LeetCode 81)
- 8.Guess Number Higher or Lower -(Microsoft , Google (with variation)) : Explanation ➕ Live Coding (LeetCode 374)
- 9.Kth Missing Positive Number (LeetCode 1539)
- 10.Minimum Time to Complete Trips (LeetCode 2187)
- 11.Koko Eating Bananas - (Leetcode - 875) - (Google, Microsoft) : Explanation ➕ Live Coding (LeetCode 875)
- 12.Binary Search - (Recursive + Iterative) (LeetCode 704)
- 13.Successful Pairs of Spells and Potions (LeetCode 2300)
- 14.Minimize Maximum of Array - (META) (LeetCode 2439)
- 15.Maximum Value at a Given Index in a Bounded Array (LeetCode 1802)
- 16.Minimum Cost to Make Array Equal (LeetCode 2448)
- 17.Last Day Where You Can Still Cross (LeetCode 1970)
- 18.Peak Index in a Mountain Array (LeetCode 852)
- 19.Minimum Speed to Arrive on Time (LeetCode 1870)
- 20.Maximum Running Time of N Computers (LeetCode 2141)
- 21.Minimize the Maximum Difference of Pairs (LeetCode 2616)
- 22.Median of Two Sorted Arrays (LeetCode 4)
- 23.Number of Flowers in Full Bloom (LeetCode 2251)
- 24.Find in Mountain Array (LeetCode 1095)
- 25.Apply Operations to Maximize Frequency Score (LeetCode 2968)
- 26.Find the Safest Path in a Grid (LeetCode 2812)
- 27.Special Array With X Elements Greater Than or Equal X (LeetCode 1608)
- 28.Most Profit Assigning Work (LeetCode 826)
- 29.Minimum Number of Days to Make m Bouquets (LeetCode 1482)
- 30.Magnetic Force Between Two Balls (LeetCode 1552)
- 31.Find K-th Smallest Pair Distance (LeetCode 719)
- 32.Most Beautiful Item for Each Query (LeetCode 2070)
- 33.Count the Number of Fair Pairs (LeetCode 2563)
- 34.Minimized Maximum of Products Distributed to Any Store (LeetCode 2064)
- 35.Minimum Limit of Balls in a Bag (LeetCode 1760)
- 36.Maximize the Minimum Game Score (LeetCode 3449)
- 37.Maximum Candies Allocated to K Children (LeetCode 2226)
- 38.House Robber IV (LeetCode 2560)
- 39.Minimum Time to Repair Cars (LeetCode 2594)
- 40.Maximum Number of Tasks You Can Assign (LeetCode 2071)
- 41.Minimize the Maximum Adjacent Element Difference (LeetCode 3357)
- 42.Kth Smallest Product of Two Sorted Arrays (LeetCode 2040)
- 43.Maximum Fruits Harvested After at Most K Steps (LeetCode 2106)
- 44.Avoid Flood in The City (LeetCode 1488)
- 45.Maximize the Minimum Powered City (LeetCode 2528)
- 46.Separate Squares I (LeetCode 3453)
- 47.Minimum Number of Seconds to Make Mountain Height Zero (LeetCode 3296)
- 48.Maximize the Distance Between Points on a Square (LeetCode 3464)
- 49.Minimum Initial Energy to Finish Tasks (LeetCode 1665)
- 50.Find Minimum in Rotated Sorted Array II (LeetCode 154)