Skip to content

Commit 16a2625

Browse files
2 parents a53f7de + 06bc0b2 commit 16a2625

File tree

12 files changed

+95
-47
lines changed

12 files changed

+95
-47
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
# DSA-Bootcamp-Java
1+
# 🔥DSA-Bootcamp-Java
2+
3+
![DSA-Bootcamp-Java](https://socialify.git.ci/kunal-kushwaha/DSA-Bootcamp-Java/image?description=1&font=Inter&language=1&owner=1&pattern=Charlie%20Brown&theme=Dark)
4+
5+
- <a href="https://www.youtube.com/KunalKushwaha?sub_confirmation=1" title="Subscribe to Kunal Kushwaha's YouTube Channel" style="background-color:#FFFFFF;color:#000000;text-decoration:none">▶ Subscribe to our channel </a>
6+
7+
- <a href="https://www.youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ" title="Click here to access full Playlist on YouTube" style="background-color:#FFFFFF;color:#000000;text-decoration:none">📂 Complete Playlist</a>
8+
9+
- <a href="SYLLABUS.md" title="Click here to Check the Syllabus of this Course" style="background-color:#FFFFFF;color:#000000;text-decoration:none">📚 Syllabus</a>
10+
11+
- <a href="https://github.com/kunal-kushwaha/DSA-Bootcamp-Java/tree/main/assignments" title="Click here to see Assignments related to this Course" style="background-color:#FFFFFF;color:#000000;text-decoration:none">✍️ Assignments</a>
12+
13+
- <a href="https://github.com/kunal-kushwaha/Competitive-Programming-Resources" title="CP Lover? Click here to get some awesome resources related to Competitive Programming" style="background-color:#FFFFFF;color:#000000;text-decoration:none">🏆 Competitive Programming Resources</a>
214

3-
- [Subscribe to our channel](https://www.youtube.com/KunalKushwaha?sub_confirmation=1)
4-
- [Complete Playlist](https://www.youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ)
5-
- [Syllabus](SYLLABUS.md)
6-
- [Assignments](https://github.com/kunal-kushwaha/DSA-Bootcamp-Java/tree/main/assignments)
7-
- [Competitive Programming Resources](https://github.com/kunal-kushwaha/Competitive-Programming-Resources)
815

916
### Connect with me
1017
<a href="https://twitter.com/kunalstwt">
@@ -33,3 +40,9 @@
3340
</a>&ensp;
3441
<a href="https://www.instagram.com/commclassroom/">
3542
<img width="30px" src="https://www.vectorlogo.zone/logos/instagram/instagram-icon.svg" />
43+
44+
45+
## Thanks to all the contributors ❤️
46+
<a href = "https://github.com/kunal-kushwaha/DSA-Bootcamp-Java/graphs/contributors">
47+
<img src = "https://contrib.rocks/image?repo=kunal-kushwaha/DSA-Bootcamp-Java"/>
48+
</a>

SYLLABUS.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# Complete Java + DSA Bootcamp Syllabus
22

3-
## NOTE:
3+
## NOTE
44
- All topics will contain problems from LeetCode Easy to Hard, explained in an easy-to-understand manner.
55
- Complete custom implementation of all Data Structures and Algorithms.
66

7+
## Mind Map
8+
<a href="https://whimsical.com/complete-java-dsa-bootcamp-syllabus-UiepFrvja5VatNLJgKsqXb">
9+
<img width="390px" height="183px" src="https://github.com/VishwaGauravIn/DSA-Bootcamp-Java/blob/main/Capture.JPG" />
10+
</a>
11+
12+
[Full Mind Map](https://whimsical.com/complete-java-dsa-bootcamp-syllabus-UiepFrvja5VatNLJgKsqXb)
13+
714
## Lectures
815
- [Complete Git & GitHub Course](https://youtu.be/apGV9Kg7ics)
916
- [Introduction to Programming](https://youtu.be/wn49bJOYAZM)
@@ -43,19 +50,18 @@
4350
- [Insertion Sort](https://youtu.be/By_5-RRqVeE)
4451
- [Selection Sort](https://youtu.be/Nd4SCCIHFWk)
4552
- [Bubble Sort](https://youtu.be/F5MZyqRp_IM)
46-
- Count Sort
47-
- Radix Sort
4853
- [Cyclic Sort](https://youtu.be/JfinxytTYFQ)
54+
- (More later)
4955
- Sliding window
5056
- Two Pointer
5157
- Subarray Questions
5258
- Pattern questions
53-
- Strings
54-
- Introduction
55-
- How Strings work
56-
- Comparison of methods
57-
- Operations in Strings
58-
- StringBuilder in java
59+
- [Strings](https://www.youtube.com/watch?v=zL1DPZ0Ovlo)
60+
- [Introduction](https://www.youtube.com/watch?v=zL1DPZ0Ovlo)
61+
- [How Strings work](https://youtu.be/zL1DPZ0Ovlo?t=216)
62+
- [Comparison of methods](https://youtu.be/zL1DPZ0Ovlo?t=977)
63+
- [Operations in Strings](https://youtu.be/zL1DPZ0Ovlo?t=1681)
64+
- [StringBuilder in java](https://youtu.be/zL1DPZ0Ovlo?t=4199)
5965
- Maths for DSA
6066
- Introduction
6167
- Complete Bitwise Operators
@@ -178,6 +184,8 @@
178184
- Limitations and how to solve
179185
- Map using LinkedList
180186
- Map using Hash
187+
- Count Sort
188+
- Radix Sort
181189
- Chaining
182190
- Probing
183191
- Huffman-Encoder

assignments/3-conditionals-loops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ all.
5656
23. Perfect Number In Java
5757
24. Check Leap Year Or Not
5858
25. Sum Of A Digits Of Number
59-
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.
59+
26. Kunal is allowed to go out with his friends only on the even days of a given month. Write a program to count the number of days he can go out in the month of August.
6060
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: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,48 @@
11
# [Video Link](https://youtu.be/vvanI8NRlSI)
22

3-
1. Define two methods to print the maximum and the minimum number respectively among three numbers entered by user.
3+
1. [Define two methods to print the maximum and the minimum number respectively among three numbers entered by user.](https://www.java67.com/2019/05/how-to-find-largest-and-smallest-of-three-numbers-in-java.html)
44

5-
2. Define a program to find out whether a given number is even or odd.
5+
2. [Define a program to find out whether a given number is even or odd.](https://www.geeksforgeeks.org/java-program-to-check-if-a-given-integer-is-odd-or-even/)
66

7-
3. A person is eligible to vote if his/her age is greater than or equal to 18. Define a method to find out if he/she is eligible to vote.
7+
3. [A person is eligible to vote if his/her age is greater than or equal to 18. Define a method to find out if he/she is eligible to vote.](https://www.efaculty.in/java-programs/voting-age-program-in-java/)
88

9-
4. Write a program to print the sum of two numbers entered by user by defining your own method.
9+
4. [Write a program to print the sum of two numbers entered by user by defining your own method.](https://code4coding.com/addition-of-two-numbers-in-java-using-method/)
1010

11-
5. Define a method that returns the product of two numbers entered by user.
11+
5. [Define a method that returns the product of two numbers entered by user.](https://code4coding.com/java-program-to-multiply-two-numbers-using-method/)
1212

13-
6. Write a program to print the circumference and area of a circle of radius entered by user by defining your own method.
13+
6. [Write a program to print the circumference and area of a circle of radius entered by user by defining your own method.](https://beginnersbook.com/2014/01/java-program-to-calculate-area-and-circumference-of-circle/)
1414

15-
7. Define a method to find out if number is prime or not.
15+
7. [Define a method to find out if number is prime or not.](https://www.geeksforgeeks.org/java-program-to-check-if-a-number-is-prime-or-not/)
1616

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
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:](https://www.techcrashcourse.com/2017/02/java-program-to-calculate-grade-of-students.html) <br/>
18+
<pre>
19+
Marks Grade
20+
91-100 AA
21+
81-90 AB
22+
71-80 BB
23+
61-70 BC
24+
51-60 CD
25+
41-50 DD
26+
<=40 Fail
27+
</pre>
2628

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
29+
9. [Write a program to print the factorial of a number by defining a method named 'Factorial'.](https://www.javatpoint.com/factorial-program-in-java)
30+
Factorial of any number n is represented by n! and is equal to 1 * 2 * 3 * .... * (n-1) *n. E.g.- <br/>
31+
<pre>
32+
4! = 1 * 2 * 3 * 4 = 24
33+
3! = 3 * 2 * 1 = 6
34+
2! = 2 * 1 = 2
35+
Also,
36+
1! = 1
3437
0! = 1
38+
</pre>
3539

36-
10. Write a function to find if a number if palindrome or not. Take number as parameter.
40+
10. [Write a function to find if a number if palindrome or not. Take number as parameter.](https://www.geeksforgeeks.org/check-if-a-number-is-palindrome/)
3741

3842
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.
3943

40-
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).
44+
12. [Write a function to check if a given triplet is a Pythagorean triplet or not.](https://www.geeksforgeeks.org/find-pythagorean-triplet-in-an-unsorted-array/) (A Pythagorean triplet is when the sum of the square of two number is equal to the square of the third number).
4145

42-
13. Write a function that returns all prime numbers between two given numbers.
46+
13. [Write a function that returns all prime numbers between two given numbers.](https://www.geeksforgeeks.org/program-to-find-prime-numbers-between-given-interval/)
4347

44-
14. Write a function that returns the sum of first n natural numbers.
48+
14. [Write a function that returns the sum of first n natural numbers.](https://www.geeksforgeeks.org/program-find-sum-first-n-natural-numbers/)

assignments/5-arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@
3737

3838
### Hard
3939
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/)
40+
2. [First Missing Positive](https://leetcode.com/problems/first-missing-positive/)

assignments/6-searching.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
- [Find a Peak Element II](https://leetcode.com/problems/find-a-peak-element-ii/)
4141
- [Frequency of the Most Frequent Element](https://leetcode.com/problems/frequency-of-the-most-frequent-element/)
4242
- [Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/)
43+
- [Capacity To Ship Packages Within D Days](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)
44+
- [4 Sum](https://leetcode.com/problems/4sum/)
4345

4446
## Hard
4547
- [Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays/)
@@ -49,3 +51,4 @@
4951
- [Split Array Largest Sum](https://leetcode.com/problems/split-array-largest-sum/)
5052
- [Find in Mountain Array](https://leetcode.com/problems/find-in-mountain-array/)
5153
- [Count smaller number after Self](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)
54+
- [Divide Chocolate Problem](https://curiouschild.github.io/leetcode/2019/06/21/divide-chocolate.html)

assignments/7-sorting.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
- [Can Make Arithmetic Progression From Sequence](https://leetcode.com/problems/can-make-arithmetic-progression-from-sequence/)
3535
- [Sort Array by Increasing Frequency](https://leetcode.com/problems/sort-array-by-increasing-frequency/)
3636
- [Special Array With X Elements Greater Than or Equal X](https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/)
37-
38-
37+
- [Find all numbers disappeared in an array](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)
38+
- [Set Mismatch](https://leetcode.com/problems/set-mismatch/)
39+
- [2Sum](https://leetcode.com/problems/two-sum/)
3940

4041
## Medium
4142
- [3Sum](https://leetcode.com/problems/3sum/)
@@ -48,3 +49,8 @@
4849
- [Sort List](https://leetcode.com/problems/sort-list/)
4950
- [Largest Number](https://leetcode.com/problems/largest-number/)
5051
- [Kth Largest Element in an Array](https://leetcode.com/problems/kth-largest-element-in-an-array/)
52+
- [Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/)
53+
- [Find all Duplicates in an array](https://leetcode.com/problems/find-all-duplicates-in-an-array/)
54+
55+
## Hard
56+
- [First missing Positive](https://leetcode.com/problems/first-missing-positive/)

assignments/8-strings.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# [Video Link](https://youtu.be/zL1DPZ0Ovlo)
2+
3+
# Problems:
4+
5+
- [Click "Show problem tags" and do questions that have tags for things we have learnt so far only.](https://leetcode.com/tag/string/)
6+

assignments/patterns.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,12 @@ Print these patterns using loops:
243243
5 4 3 2 1 2 3 4 5
244244
245245
246+
31. 4 4 4 4 4 4 4
247+
4 3 3 3 3 3 4
248+
4 3 2 2 2 3 4
249+
4 3 2 1 2 3 4
250+
4 3 2 2 2 3 4
251+
4 3 3 3 3 3 4
252+
4 4 4 4 4 4 4
253+
246254
```

assignments/strings.md

Whitespace-only changes.
Binary file not shown.

lectures/9-linear search/code/src/com/kunal/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public class Main {
55
public static void main(String[] args) {
66
int[] nums = {23, 45, 1, 2, 8, 19, -3, 16, -11, 28};
77
int target = 19;
8-
int ans = linearSearch(nums, target);
8+
boolean ans = linearSearch3(nums, target);
99
System.out.println(ans);
1010
}
1111

0 commit comments

Comments
 (0)