Skip to content

Latest commit

History

371 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🚀 ZERO TO HERO JAVA WITH DSA ☕︎


📈 Progress


🛠️ Step 1: Learn the Basics

Progress:19 / 31

🎓 Lec 1: Things to Know in C++/Java/Python or any language

Progress:9 / 9

🔢📝 Topic🎯 DifficultyStatus
1️⃣User Input / Output🟢 Easy✅ Done
2️⃣Data Types🟢 Easy✅ Done
3️⃣If Else statements🟢 Easy✅ Done
4️⃣Switch Statement🟢 Easy✅ Done
5️⃣What are arrays, strings?🟢 Easy✅ Done
6️⃣For loops🟢 Easy✅ Done
7️⃣While loops🟢 Easy✅ Done
8️⃣Functions (Pass by Reference and Value)🟢 Easy✅ Done
9️⃣Time Complexity [Basics]🟢 Easy✅ Done

🧠 Lec 2: Build-up Logical Thinking

Progress:1 / 1


📚 Lec 3: Learn STL/Java-Collections or similar thing in your language

Progress:1 / 1

🔢📝 Topic🎯 DifficultyStatus
1️⃣Java🟡 Medium✅ Done

🔢 Lec 4: Know Basic Maths

Progress:7 / 7

🔢📝 Topic🎯 DifficultyStatus
1️⃣Count Digits🟢 Easy✅ Done
2️⃣Reverse a Number🟢 Easy✅ Done
3️⃣Check Palindrome🟢 Easy✅ Done
4️⃣GCD Or HCF🟢 Easy✅ Done
5️⃣Armstrong Numbers🟢 Easy✅ Done
6️⃣Print all Divisors🟢 Easy✅ Done
7️⃣Check for Prime🟢 Easy✅ Done

🔄 Step 2: Learn Important Sorting Techniques

Progress:3 / 3

📋 Lec 1: Sorting-I

Progress:3 / 3

🔢📝 Topic🎯 DifficultyStatus
1️⃣Selection Sort🟢 Easy✅ Done
2️⃣Bubble Sort🟢 Easy✅ Done
3️⃣Insertion Sort🟢 Easy✅ Done

📋 Lec 2: Cyclic Sort

Progress:7 / 7

🔢📝 Topic🎯 DifficultyStatus
1️⃣Cyclic Sort🟢 Easy✅ Done
2️⃣Find All Duplicates🟡 Medium✅ Done
3️⃣Find All Missing Numbers🟡 Medium✅ Done
4️⃣Find Duplicate🟡 Medium✅ Done
5️⃣Missing Number🟢 Easy✅ Done
6️⃣First Missing Positive🔴 Hard✅ Done
7️⃣Set Mismatch🟡 Medium✅ Done

🧩 Step 3: Solve Problems on Arrays [Easy → Medium → Hard]

Progress:40 / 40

🟢 Lec 1: Easy

Progress:14 / 14

🔢📝 Topic🎯 DifficultyStatus
1️⃣Largest Element in an Array🟢 Easy✅ Done
2️⃣Second Largest Element in an Array🟢 Easy✅ Done
3️⃣Check if the array is sorted🟢 Easy✅ Done
4️⃣Remove duplicates from Sorted array🟢 Easy✅ Done
5️⃣Left Rotate an array by one place🟢 Easy✅ Done
6️⃣Left rotate an array by D places🟢 Easy✅ Done
7️⃣Move Zeros to end🟢 Easy✅ Done
8️⃣Linear Search🟢 Easy✅ Done
9️⃣Find the Union🟡 Medium✅ Done
🔟Find missing number in an array🟢 Easy✅ Done
1️⃣1️⃣Maximum Consecutive Ones🟢 Easy✅ Done
1️⃣2️⃣Find the number that appears once🟡 Medium✅ Done
1️⃣3️⃣Longest subarray with given sum K (positives)🟡 Medium✅ Done
1️⃣4️⃣Longest subarray with sum K (Positives + Negatives)🟡 Medium✅ Done

🟡 Lec 2: Medium

Progress:14 / 14

🔢📝 Topic🎯 DifficultyStatus
1️⃣2Sum Problem🟡 Medium✅ Done
2️⃣Sort an array of 0's, 1's, and 2's🟡 Medium✅ Done
3️⃣Majority Element (>RecursionBasic/2 times)🟢 Easy✅ Done
4️⃣Kadane's Algorithm🟢 Easy✅ Done
5️⃣Print subarray with maximum subarray sum🟡 Medium✅ Done
6️⃣Stock Buy and Sell🟢 Easy✅ Done
7️⃣Rearrange the array in alternating positive and negative items🟡 Medium✅ Done
8️⃣Next Permutation🟡 Medium✅ Done
9️⃣Leaders in an Array problem🟢 Easy✅ Done
🔟Longest Consecutive Sequence in an Array🟡 Medium✅ Done
1️⃣1️⃣Set Matrix Zeros🟡 Medium✅ Done
1️⃣2️⃣Rotate Matrix by 90 degrees🟡 Medium✅ Done
1️⃣3️⃣Print the matrix in spiral manner🟡 Medium✅ Done
1️⃣4️⃣Count subarrays with given sum🟢 Easy✅ Done

🔴 Lec 3: Hard

Progress:12 / 12

🔢📝 Topic🎯 DifficultyStatus
1️⃣Pascal's Triangle🟡 Medium✅ Done
2️⃣Majority Element (RecursionBasic/3 times)🟡 Medium✅ Done
3️⃣3-Sum Problem🟡 Medium✅ Done
4️⃣4-Sum Problem🔴 Hard✅ Done
5️⃣Largest Subarray with 0 Sum🟡 Medium✅ Done
6️⃣Count number of subarrays with given xor K🔴 Hard✅ Done
7️⃣Merge Overlapping Subintervals🟡 Medium✅ Done
8️⃣Merge two sorted arrays without extra space🟡 Medium✅ Done
9️⃣Find the repeating and missing number🔴 Hard✅ Done
🔟Count Inversions🔴 Hard✅ Done
1️⃣1️⃣Reverse Pairs🔴 Hard✅ Done
1️⃣2️⃣Maximum Product Subarray🟢 Easy✅ Done

🔍 Step 4: Binary Search [1D, 2D Arrays, Search Space]

Progress:12 / 12

📊 Lec 1: BS on 1D Arrays

Progress:9 / 9

🔢📝 Topic🎯 DifficultyStatus
1️⃣Binary Search to find X in sorted array🟢 Easy✅ Done
2️⃣Implement Lower Bound🟢 Easy✅ Done
3️⃣Implement Upper Bound🟢 Easy✅ Done
4️⃣Search Insert Position🟢 Easy✅ Done
5️⃣Floor/Ceil in Sorted Array🟡 Medium✅ Done
6️⃣Find the first or last occurrence of a number🟢 Easy✅ Done
7️⃣Count occurrences of a number in a sorted array🟢 Easy✅ Done
8️⃣Search in Rotated Sorted Array I🟡 Medium✅ Done
9️⃣Search in Rotated Sorted Array II🟡 Medium✅ Done

🧮 Lec 2: BS on Answers

Progress:3 / 3

🔢📝 Topic🎯 DifficultyStatus
1️⃣Find square root of a number in log RecursionBasic🟡 Medium✅ Done
2️⃣Find the Nth root of a number using binary search🟡 Medium✅ Done
3️⃣Koko Eating Bananas🟡 Medium✅ Done

🎉 Keep Going! You're doing amazing!

About

A structured Java Data Structures and Algorithms repository containing solved problems with multiple approaches, optimized solutions, and clear explanations. Focused on problem-solving, time–space complexity analysis, and writing clean, efficient Java code

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages