Skip to content

Commit 9cce006

Browse files
authored
Merge branch 'kunal-kushwaha:main' into main
2 parents 8715af9 + 0082f73 commit 9cce006

27 files changed

+512
-0
lines changed

SYLLABUS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
- Sliding window
5050
- Two Pointer
5151
- Subarray Questions
52+
- Pattern questions
5253
- Strings
5354
- Introduction
5455
- How Strings work

assignments/Conditional and Loops.pdf

-68.8 KB
Binary file not shown.

assignments/First Java Program.pdf

-63.8 KB
Binary file not shown.

assignments/Flow of Program.pdf

-61.6 KB
Binary file not shown.

assignments/arrays.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# [Video Link](https://youtu.be/n60Dn0UsbEk)
2+
3+
## Submit the following on your Leetcode profile itself.
4+
5+
### Easy
6+
1. [Build Array from Permutation](https://leetcode.com/problems/build-array-from-permutation/)
7+
2. [Concatenation of Array](https://leetcode.com/problems/concatenation-of-array/)
8+
3. [Running Sum of 1d Array](https://leetcode.com/problems/running-sum-of-1d-array/)
9+
4. [Richest Customer Wealth](https://leetcode.com/problems/richest-customer-wealth/)
10+
5. [Shuffle the Array](https://leetcode.com/problems/shuffle-the-array/)
11+
6. [Kids With the Greatest Number of Candies](https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/)
12+
7. [Number of Good Pairs](https://leetcode.com/problems/number-of-good-pairs/)
13+
8. [How Many Numbers Are Smaller Than the Current Number](https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/)
14+
9. [Create Target Array in the Given Order](https://leetcode.com/problems/create-target-array-in-the-given-order/)
15+
10. [Check if the Sentence Is Pangram](https://leetcode.com/problems/check-if-the-sentence-is-pangram/)
16+
11. [Count Items Matching a Rule](https://leetcode.com/problems/count-items-matching-a-rule/)
17+
12. [Find the Highest Altitude](https://leetcode.com/problems/find-the-highest-altitude/)
18+
13. [Flipping an Image](https://leetcode.com/problems/flipping-an-image/)
19+
14. [Cells with Odd Values in a Matrix](https://leetcode.com/problems/cells-with-odd-values-in-a-matrix/)
20+
15. [Matrix Diagonal Sum](https://leetcode.com/problems/matrix-diagonal-sum/)
21+
16. [Find Numbers with Even Number of Digits](https://leetcode.com/problems/find-numbers-with-even-number-of-digits/)
22+
17. [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)
23+
18. [Add to Array-Form of Integer](https://leetcode.com/problems/add-to-array-form-of-integer/)
24+
19. [Maximum Population Year](https://leetcode.com/problems/maximum-population-year/)
25+
20. [Determine Whether Matrix Can Be Obtained By Rotation](https://leetcode.com/problems/determine-whether-matrix-can-be-obtained-by-rotation/)
26+
27+
28+
### Medium
29+
1. [Spiral Matrix](https://leetcode.com/problems/spiral-matrix/)
30+
2. [Set Matrix Zeroes](https://leetcode.com/problems/set-matrix-zeroes/)
31+
3. [Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self/)
32+
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/)
33+
5. [Jump Game](https://leetcode.com/problems/jump-game/)

assignments/conditionals-loops.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# [Video Link](https://youtu.be/ldYLYRNaucM)
2+
## Write Java programs for the following:
3+
4+
### Basic Java Programs
5+
1. Area Of Circle Java Program
6+
2. Area Of Triangle
7+
3. Area Of Rectangle Program
8+
4. Area Of Isosceles Triangle
9+
5. Area Of Parallelogram
10+
6. Area Of Rhombus
11+
7. Area Of Equilateral Triangle
12+
8. Perimeter Of Circle
13+
9. Perimeter Of Equilateral Triangle
14+
10. Perimeter Of Parallelogram
15+
11. Perimeter Of Rectangle
16+
12. Perimeter Of Square
17+
13. Perimeter Of Rhombus
18+
14. Volume Of Cone Java Program
19+
15. Volume Of Prism
20+
16. Volume Of Cylinder
21+
17. Volume Of Sphere
22+
18. Volume Of Pyramid
23+
19. Curved Surface Area Of Cube
24+
20. Total Surface Area Of Cylinder
25+
21. Fibonacci Series In Java Programs
26+
22. [Subtract the Product and Sum of Digits of an Integer](https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/)
27+
28+
### Intermediate Java Programs
29+
1. Factorial Program In Java
30+
2. Calculate Electricity Bill
31+
3. Calculate Average Of N Numbers
32+
4. Calculate Discount Of Product
33+
5. Calculate Distance Between Two Points
34+
6. Calculate Commission Percentage
35+
7. Power In Java
36+
8. Deprecation Program
37+
9. Calculate Batting Average
38+
10. Calculate CGPA Java Program
39+
11. Compound Interest Java Program
40+
12. Calculate Average Marks
41+
13. Addition Of Two Numbers
42+
14. Sum Of N Numbers
43+
15. Armstrong Number In Java
44+
16. Find Ncr & Npr
45+
17. Reverse A String In Java
46+
18. Find if a number is palindrome or not
47+
19. Future Investment Value
48+
20. HCF Of Two Numbers Program
49+
21. LCM Of Two Numbers
50+
22. Java Program Vowel Or Consonant
51+
23. Perfect Number In Java
52+
24. Check Leap Year Or Not
53+
25. Sum Of A Digits Of Number

assignments/first-java.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# [Video Link](https://youtu.be/TAtrPoaJ7gc)
2+
3+
## Write Java programs for the following:
4+
5+
1. Write a program to print factorial of a number, also take input.
6+
2. Write a program to print whether a number is even or odd, also take
7+
input.
8+
3. Take name as input and print a greeting message for that name.
9+
4. Write a program to input principle, time and rate (P, T, R) from user and
10+
find Simple Interest.
11+
5. Take in two numbers and an operator (+, -, *, /) and calculate the value.
12+
(Use if conditions)
13+
6. Take 2 numbers as input and print the largest number.
14+
7. Input a number and print all the factors of that number (use loops).
15+
8. Input currency in rupee and output in dollar.
16+
9. Take integer inputs till the user enters 0 and print the sum of all numbers
17+
(HINT: while loop)
18+
10. Take integer inputs till the user enters 0 and print the largest number from
19+
all.

assignments/flow-of-program.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Video Link](https://youtu.be/lhELGQAV4gg)
2+
3+
## Create flowchart and pseudocode for the following:
4+
5+
1. Input a year and find whether it is a leap year or not.
6+
2. Take two numbers and print the sum of both.
7+
3. Take a number as input and print the multiplication table for it.
8+
4. Take a 2 numbers as inputs and find their HCF and LCM.
9+
5. Keep taking numbers as inputs till the user enters ‘x’, after that print sum
10+
of all.

assignments/functions.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# [Video Link](https://youtu.be/vvanI8NRlSI)
2+
3+
1. Define two methods to print the maximum and the minimum number respectively among three numbers entered by user.
4+
5+
2. Define a program to find out whether a given number is even or odd.
6+
7+
3. A person is elligible to vote if his/her age is greater than or equal to 18. Define a method to find out if he/she is elligible to vote.
8+
9+
4. Write a program to print the sum of two numbers entered by user by defining your own method.
10+
11+
5. Define a method that returns the product of two numbers entered by user.
12+
13+
6. Write a program to print the circumference and area of a circle of radius entered by user by defining your own method.
14+
15+
7. Define a method to find out if number is prime or not.
16+
17+
8. Write a program which will ask the user to enter his/her marks (out of 100). Define a method that will display grades according to the marks entered as below:
18+
Marks Grade
19+
91-100 AA
20+
81-90 AB
21+
71-80 BB
22+
61-70 BC
23+
51-60 CD
24+
41-50 DD
25+
<=40 Fail
26+
27+
9. Write a program to print the factorial of a number by defining a method named 'Factorial'.
28+
Factorial of any number n is represented by n! and is equal to 1*2*3*....*(n-1)*n. E.g.-
29+
4! = 1*2*3*4 = 24
30+
3! = 3*2*1 = 6
31+
2! = 2*1 = 2
32+
Also,
33+
1! = 1
34+
0! = 0
35+
36+
10. Write a function to find if a number if palindrome or not. Take number as parameter.
37+
38+
11. Convert the programs in [flow of program](flow-of-program.md), [conditionals & loops](conditionals-loops.md), [first java](first-java.md) assignemts into functions.

lectures/8-arrays/Arrays.pdf

1.23 MB
Binary file not shown.

0 commit comments

Comments
 (0)