Skip to content

Repository files navigation

java DSA Java

A collection of all dsa problems I solve in Java with notes as to why I solved it the way I did.


Overview

This repository documents my journey of mastering DSA through consistent problem solving.

Each solution is written in Java and includes clear, inline explanations that break down the reasoning behind the approach.

This is not a dump of answers — it’s a structured system for building real problem-solving skill.


Key Features

  • Clean and readable Java solutions

  • Inline explanations (why the approach works)

  • Projected to contain Time & space complexity analysis

  • Projected to cover core problem-solving patterns:

    • Sliding Window
    • Two Pointers
    • Recursion & Backtracking
    • Dynamic Programming
    • Greedy Algorithms
    • Graph Traversals

Repository Structure

Each problem is organized into its own directory:

/problem-name_date
  └── 1.java   // solution + explanation inside
  └── 2.java   // alternative solution

first line holds the beats & date of soln.


How to Use

To get the most value from this repository:

  1. Research problem using dir name on platforms like leetcode
  2. Attempt the problem yourself first
  3. Review the solution code
  4. Focus on understanding the pattern, not just the answer
  5. Reapply the pattern to similar problems

Objective

  • Build strong DSA intuition
  • Recognize patterns quickly
  • Write efficient and scalable solutions
  • Prepare for real-world technical interviews

Progress Tracking

This repository is actively maintained and continuously updated with new problems.

Future improvements may include:

  • Problem difficulty tagging (Easy/Medium/Hard)
  • Pattern-based indexing
  • Solution benchmarks

Contribution

This is a personal learning repository, but feel free to fork and use it as a reference.


License

This project is open-source and available under the MIT License.


If you're serious about improving at DSA, consistency beats intensity. Keep solving.

About

A collection of all dsa problems I solve in Java with notes as to why I solved it the way I did.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages