Skip to content
SparshM8Public

About

Structured Java data structures and algorithms practice repository organized by problem, topic, and interview pattern.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

551 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Structures & Algorithms in Java

A structured collection of data structures and algorithms practice solutions in Java, organized by problem and topic. This repository documents my preparation through readable implementations, complexity analysis, and incremental problem solving.

What is covered

Topic Examples
Arrays and strings Searching, sorting, prefix techniques, sliding window, two pointers
Linked lists Traversal, reversal, merging, cycle detection
Stacks and queues Monotonic structures, parsing, scheduling patterns
Trees and graphs Traversals, shortest paths, connectivity, recursion
Dynamic programming Memoization, tabulation, subsequences, optimization
Greedy and binary search Interval decisions, feasibility checks, optimization patterns
SQL practice Selected database query problems where applicable

Repository structure

Each problem is kept in its own folder with a descriptive name, the solution source file, and a problem explanation where available.

DSA/
├── <problem-number>-<problem-name>/
│   ├── README.md
│   └── <solution-file>.java
└── ...

How to run a solution

From the problem directory:

javac Solution.java
java Solution

Some files use problem-specific class names. In that case, compile and run the class declared in the source file:

javac <file-name>.java
java <ClassName>

Approach

Solutions prioritize correctness, clear naming, and an explicit time and space complexity trade-off. The collection is intentionally incremental: newer solutions may include multiple approaches, while earlier entries focus on building a reliable foundation.

Progress

This is a living practice repository. Problems are added as I work through interview patterns, strengthen Java fundamentals, and revisit solutions for clarity or optimization.

Author

Sparsh Mishra — GitHub · Portfolio

About

Structured Java data structures and algorithms practice repository organized by problem, topic, and interview pattern.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages