Skip to content

About

DSA problem solutions in Java — organized by topic with complexity analysis

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

DSA Algorithms - Java

Solutions to common Data Structures and Algorithms problems implemented in Java, organized by topic with detailed complexity analysis.

Problems

# Problem Category Approach Time Space File
1 Palindrome Check Strings String reversal and comparison O(n) O(n) Palindrome.java
2 Longest Palindromic Substring Strings / Dynamic Programming Brute force — all substrings + two-pointer check O(n^3) O(n) LongestPalindrome.java

Project Structure

src/
  Main.java                             # Driver class with example usage
  strings/
    Palindrome.java                     # Simple palindrome check
    LongestPalindrome.java              # Longest palindromic substring
  dynamic_programming/                  # (placeholder for future problems)

How to Run

cd src
javac Main.java strings/*.java
java Main

Contributing

  1. Add your solution file under the appropriate topic directory (e.g., src/strings/, src/dynamic_programming/).
  2. Include a class-level Javadoc comment with:
    • Problem description and examples
    • Approach explanation
    • Time and space complexity analysis
  3. Update this README table with the new problem.

About

DSA problem solutions in Java — organized by topic with complexity analysis

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages