Skip to content

Commit 9df5fb9

Browse files
2 parents 63c7649 + 49c09a2 commit 9df5fb9

File tree

6 files changed

+40
-4
lines changed

6 files changed

+40
-4
lines changed

assignments/3-conditionals-loops.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@
5252
24. Check Leap Year Or Not
5353
25. Sum Of A Digits Of Number
5454
26. Kunal is allowed to go out with his friends only on the even days of a given month. Write a program to check if he can go out in the month of August.
55+
27. Write a program to print the sum of negative numbers, sum of positive even numbers and the sum of positive odd numbers from a list of numbers (N) entered by the user. The list terminates when the user enters a zero.

assignments/4-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Also,
3535

3636
10. Write a function to find if a number if palindrome or not. Take number as parameter.
3737

38-
11. Convert the programs in [flow of program](flow-of-program.md), [conditionals & loops](conditionals-loops.md), [first java](first-java.md) assignments into functions.
38+
11. Convert the programs in [flow of program](1-flow-of-program.md), [conditionals & loops](3-conditionals-loops.md), [first java](2-first-java.md) assignments into functions.
3939

4040
12. Write a function to check if a given triplet is a Pythagorean triplet or not. (A Pythagorean triplet is when the sum of the square of two number is equal to the square of the third number).
4141

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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Videos:
22
- [Linear Search](https://youtu.be/_HRA37X8N_Q)
33
- [Binary Search](https://youtu.be/f6UU7V3szVw)
4+
- [Binary Search Questions](https://youtu.be/W9QJ8HaRvJQ)
45

56
# Problems:
67

@@ -15,15 +16,13 @@
1516
- [Kth Missing Positive Number](https://leetcode.com/problems/kth-missing-positive-number/)
1617
- [Search Insert Position](https://leetcode.com/problems/search-insert-position/)
1718
- [Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array/)
18-
- [Kth Missing Positive Number](https://leetcode.com/problems/kth-missing-positive-number/)
1919
- [Count Negative Numbers in a Sorted Matrix](https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/)
20-
- [Search Insert Position](https://leetcode.com/problems/search-insert-position/)
21-
- [Two Sum II - Input array is sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)
2220
- [Intersection of Two Arrays](https://leetcode.com/problems/intersection-of-two-arrays/)
2321
- [Intersection of Two Arrays II](https://leetcode.com/problems/intersection-of-two-arrays-ii/)
2422
- [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/)
2523
- [Check If N and Its Double Exist](https://leetcode.com/problems/check-if-n-and-its-double-exist/)
2624
- [Special Array With X Elements Greater Than or Equal X](https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/)
25+
- [Binary Search](https://leetcode.com/problems/binary-search/)
2726

2827
## Medium
2928
- [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)
@@ -46,5 +45,7 @@
4645
- [Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays/)
4746
- [Find Minimum in Rotated Sorted Array II](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)
4847
- [Aggressive cows](https://www.spoj.com/problems/AGGRCOW/)
48+
- [Book allocation](https://www.geeksforgeeks.org/allocate-minimum-number-pages/)
4949
- [Split Array Largest Sum](https://leetcode.com/problems/split-array-largest-sum/)
5050
- [Find in Mountain Array](https://leetcode.com/problems/find-in-mountain-array/)
51+
- [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
```

lectures/8-arrays/arraylist.png

1.06 MB
Loading

0 commit comments

Comments
 (0)