Skip to content

Daily Java-based solutions to Striver’s DSA Sheet – clean code, problem-wise breakdown, and consistent updates to build strong data structure and algorithm skills.

Notifications You must be signed in to change notification settings

aadityakumar08/striver-dsa-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 

Repository files navigation

Striver DSA Sheet – Java Solutions by Aditya Kumar

This repository provides clean, well-structured Java solutions to the problems from the Striver DSA Sheet. Each solution is crafted for clarity, interview readiness, and ease of understanding—ideal for both beginners and those preparing for coding interviews.


📂 Folder Structure

Arrays/
├── 01_LargestElementInArray.java
├── 02_SecondLargestElement.java
├── 03_CheckIfArrayIsSortedAndRotated.java
├── 04_RemoveDuplicatesFromSortedArray.java
├── 05_LeftRotateArrayByOne.java
├── 06_LeftRotateArrayByDPlaces.java
├── 07_MoveZeroesToEnd.java
├── 08_LinearSearch.java
├── 09_FindUnionOfTwoSortedArrays.java
├── 10_FindMissingNumber.java
├── 11_MaxConsecutiveOnes.java
├── 12_SingleNumber_XOR.java
├── 13_LongestSubarraySumK_Positive.java
├── 14_LongestSubarraySumK_PositiveNegative.java
├── Extra_MaximumSubarraySum_Kadane.java

📝 Solution Format

Each solution file includes:

  • Problem Statement
  • LeetCode/GFG Link
  • Date
  • Author: Aditya Kumar
  • Approach Explanation
  • Time & Space Complexity
  • Complete Java Code

🚀 How to Run

  1. Clone the repository:
    git clone https://github.com/your-username/striver-dsa-java.git
  2. Open in your preferred Java IDE (IntelliJ IDEA, VS Code, Eclipse, etc.)
  3. Compile and run any solution:
    javac Arrays/01_LargestElementInArray.java
    java Arrays.01_LargestElementInArray

💡 Why Use This Repository?

  • Java-only: All solutions are in Java for consistency.
  • Beginner-friendly: Clear comments and descriptive class/method names.
  • Professional structure: Easy navigation for recruiters and contributors.
  • Consistent commits: Each update includes meaningful commit messages.

👤 Maintainer

Aditya Kumar

Feel free to fork, contribute, or reach out for collaboration!

About

Daily Java-based solutions to Striver’s DSA Sheet – clean code, problem-wise breakdown, and consistent updates to build strong data structure and algorithm skills.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages