Skip to content

Commit 00e30fa

Browse files
Merge pull request kunal-kushwaha#130 from sayantani11/assignment2
Patterns, Searching & Arrays
2 parents 2ec8fa8 + 266dd42 commit 00e30fa

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

assignments/5-arrays.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@
3434
4. [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)
3535
5. [Jump Game](https://leetcode.com/problems/jump-game/)
3636
6. [Rotate Array](https://leetcode.com/problems/rotate-array/)
37+
38+
### Hard
39+
1. [Max Value of Equation](https://leetcode.com/problems/max-value-of-equation/)
40+
2. [ First Missing Positive](https://leetcode.com/problems/first-missing-positive/)

assignments/6-searching.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
- [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/)
2424
- [Check If N and Its Double Exist](https://leetcode.com/problems/check-if-n-and-its-double-exist/)
2525
- [Special Array With X Elements Greater Than or Equal X](https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/)
26+
- [Binary Search](https://leetcode.com/problems/binary-search/)
2627

2728
## Medium
2829
- [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)
@@ -48,3 +49,4 @@
4849
- [Book allocation](https://www.geeksforgeeks.org/allocate-minimum-number-pages/)
4950
- [Split Array Largest Sum](https://leetcode.com/problems/split-array-largest-sum/)
5051
- [Find in Mountain Array](https://leetcode.com/problems/find-in-mountain-array/)
52+
- [Count smaller number after Self](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)

assignments/patterns.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,34 @@ Print these patterns using loops:
213213
8 9 12 13
214214
10 11
215215
216+
28. *
217+
* *
218+
* * *
219+
* * * *
220+
* * * * *
221+
* * * * *
222+
* * * *
223+
* * *
224+
* *
225+
*
226+
227+
29,
228+
* *
229+
** **
230+
*** ***
231+
**** ****
232+
**********
233+
**********
234+
**** ****
235+
*** ***
236+
** **
237+
* *
238+
239+
30. 1
240+
2 1 2
241+
3 2 1 2 3
242+
4 3 2 1 2 3 4
243+
5 4 3 2 1 2 3 4 5
244+
245+
216246
```

0 commit comments

Comments
 (0)