Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions assignments/06-searching.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@
# Problems:

## Easy
- [Square Root](https://leetcode.com/problems/sqrtx/)
- [Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower/)
- [First Bad Version](https://leetcode.com/problems/first-bad-version/)
- [Two Sum II - Input array is sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)
- [Valid Perfect Square](https://leetcode.com/problems/valid-perfect-square/)
- [Arranging Coins(Easy)](https://leetcode.com/problems/arranging-coins/)
- [Find Smallest Letter Greater Than Target](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)
- [Kth Missing Positive Number](https://leetcode.com/problems/kth-missing-positive-number/)
- [Search Insert Position](https://leetcode.com/problems/search-insert-position/)
- [Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array/)
- [Count Negative Numbers in a Sorted Matrix](https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/)
- [Intersection of Two Arrays](https://leetcode.com/problems/intersection-of-two-arrays/)
- [Intersection of Two Arrays II](https://leetcode.com/problems/intersection-of-two-arrays-ii/)
- [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/)
- [Check If N and Its Double Exist](https://leetcode.com/problems/check-if-n-and-its-double-exist/)
- [Special Array With X Elements Greater Than or Equal X](https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/)
- [Binary Search](https://leetcode.com/problems/binary-search/)
1 [Square Root](https://leetcode.com/problems/sqrtx/)
2 [Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower/)
3 [First Bad Version](https://leetcode.com/problems/first-bad-version/)
4 [Two Sum II - Input array is sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)
5 [Valid Perfect Square](https://leetcode.com/problems/valid-perfect-square/)
6 [Arranging Coins(Easy)](https://leetcode.com/problems/arranging-coins/)
7 [Find Smallest Letter Greater Than Target](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)
8 [Kth Missing Positive Number](https://leetcode.com/problems/kth-missing-positive-number/)
9 [Search Insert Position](https://leetcode.com/problems/search-insert-position/)
10 [Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array/)
11 [Count Negative Numbers in a Sorted Matrix](https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/)
12 [Intersection of Two Arrays](https://leetcode.com/problems/intersection-of-two-arrays/)
13 [Intersection of Two Arrays II](https://leetcode.com/problems/intersection-of-two-arrays-ii/)
14 [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/)
15 [Check If N and Its Double Exist](https://leetcode.com/problems/check-if-n-and-its-double-exist/)
16 [Special Array With X Elements Greater Than or Equal X](https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/)
17 [Binary Search](https://leetcode.com/problems/binary-search/)

## Medium
- [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)
- [Single Element in a Sorted Array](https://leetcode.com/problems/single-element-in-a-sorted-array/)
- [Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/)
- [Search in Rotated Sorted Array II](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)
- [Find Minimum in Rotated Sorted Array](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)
- [Find Peak Element](https://leetcode.com/problems/find-peak-element/)
- [Find Right Interval](https://leetcode.com/problems/find-right-interval/)
- [Reach a Number](https://leetcode.com/problems/reach-a-number/)
- [Maximum Value at a Given Index in a Bounded Array](https://leetcode.com/problems/maximum-value-at-a-given-index-in-a-bounded-array/)
- [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)
- [Minimum Absolute Sum Difference](https://leetcode.com/problems/minimum-absolute-sum-difference/)
- [Search a 2D Matrix](https://leetcode.com/problems/search-a-2d-matrix/)
- [Find a Peak Element II](https://leetcode.com/problems/find-a-peak-element-ii/)
- [Frequency of the Most Frequent Element](https://leetcode.com/problems/frequency-of-the-most-frequent-element/)
- [Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/)
- [Capacity To Ship Packages Within D Days](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)
- [4 Sum](https://leetcode.com/problems/4sum/)
19 [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)
20 [Single Element in a Sorted Array](https://leetcode.com/problems/single-element-in-a-sorted-array/)
21 [Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/)
22 [Search in Rotated Sorted Array II](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)
23 [Find Minimum in Rotated Sorted Array](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)
24 [Find Peak Element](https://leetcode.com/problems/find-peak-element/)
25 [Find Right Interval](https://leetcode.com/problems/find-right-interval/)
26 [Reach a Number](https://leetcode.com/problems/reach-a-number/)
27 [Maximum Value at a Given Index in a Bounded Array](https://leetcode.com/problems/maximum-value-at-a-given-index-in-a-bounded-array/)
28 [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)
29 [Minimum Absolute Sum Difference](https://leetcode.com/problems/minimum-absolute-sum-difference/)
30 [Search a 2D Matrix](https://leetcode.com/problems/search-a-2d-matrix/)
31 [Find a Peak Element II](https://leetcode.com/problems/find-a-peak-element-ii/)
32 [Frequency of the Most Frequent Element](https://leetcode.com/problems/frequency-of-the-most-frequent-element/)
33 [Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/)
34 [Capacity To Ship Packages Within D Days](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)
35 [4 Sum](https://leetcode.com/problems/4sum/)

## Hard
- [Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays/)
- [Find Minimum in Rotated Sorted Array II](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)
- [Aggressive cows](https://www.spoj.com/problems/AGGRCOW/)
- [Book allocation](https://www.geeksforgeeks.org/allocate-minimum-number-pages/)
- [Split Array Largest Sum](https://leetcode.com/problems/split-array-largest-sum/)
- [Find in Mountain Array](https://leetcode.com/problems/find-in-mountain-array/)
- [Count smaller number after Self](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)
- [Divide Chocolate Problem](https://curiouschild.github.io/leetcode/2019/06/21/divide-chocolate.html)
36 [Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays/)
37 [Find Minimum in Rotated Sorted Array II](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)
38 [Aggressive cows](https://www.spoj.com/problems/AGGRCOW/)
39 [Book allocation](https://www.geeksforgeeks.org/allocate-minimum-number-pages/)
40 [Split Array Largest Sum](https://leetcode.com/problems/split-array-largest-sum/)
41 [Find in Mountain Array](https://leetcode.com/problems/find-in-mountain-array/)
42 [Count smaller number after Self](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)
43 [Divide Chocolate Problem](https://curiouschild.github.io/leetcode/2019/06/21/divide-chocolate.html)