Skip to content

Recursive-Rhino/Data_Structures_And_Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“š Data Structures and Algorithms

Daily Problem Solving Journey in Java โ˜•

Java DSA Last Commit


๐ŸŽฏ About This Repository

Welcome to my Data Structures and Algorithms repository! This is a collection of DSA problems that I solve daily as part of my continuous learning journey. Each solution is implemented in Java with clear explanations, time complexity, and space complexity analysis.

๐Ÿš€ Goals & Objectives

  • ๐Ÿ“… Solve at least one DSA problem daily
  • ๐Ÿ’ก Master core DSA concepts and patterns
  • ๐Ÿ† Prepare for technical interviews
  • ๐Ÿ“ˆ Track progress and improvement over time
  • ๐Ÿค Share knowledge with the developer community

๐Ÿ“‹ Topics Covered

Click to expand topics
Topic Easy Medium Hard Total
๐Ÿ“Š Arrays 15 12 5 32
๐Ÿ”ค Strings 10 8 3 21
๐Ÿ”— Linked List 8 10 4 22
๐ŸŒฒ Trees 12 15 8 35
๐Ÿ“ˆ Graphs 5 12 10 27
๐Ÿงฎ Dynamic Programming 8 18 15 41
โšก Recursion & Backtracking 6 10 7 23
๐Ÿ” Searching & Sorting 10 8 4 22
๐Ÿ“š Stack & Queue 8 6 2 16
๐Ÿ—‚๏ธ Heap & Hashing 7 9 5 21
๐ŸŽฏ Greedy Algorithms 5 8 6 19
๐Ÿ”ข Math & Bit Manipulation 12 6 3 21

Total Problems Solved: 300+ ๐ŸŽ‰

๐Ÿ“ Problem Index

S.No Problem Name Difficulty Topic Solution Time Space
001 Array Utility Easy Arrays View O(n) O(1)
002 Buy And Sell Stock Easy Arrays View O(n) O(1)
003 Finding Leaders Easy Arrays View O(n) O(n)
004 Greater Then nBy2 Easy Arrays View O(n) O(n)
005 Longest Consecutive Sequence Medium Arrays View O(n) O(n)
006 Longest Subarray Medium Arrays View O(n) O(n)
007 Longest Sub Array Medium Arrays View O(n) O(1)
008 Maximum Sub Array Medium Arrays View O(n) O(1)
009 Missing Value Problem Easy Arrays View O(n) O(1)
010 Rearrange The Neg And Pos Easy Arrays View O(n) O(n)
011 Sorting Easy Arrays View O(n log n) O(1)
012 Sorting 0s 1s 2s Easy Arrays View O(n) O(1)
013 Two Sum Easy Arrays View O(n) O(n)
013 LinkedList Easy LinkedList View O(n) O(n)

๐Ÿ“Œ Note: Complete problem list can be found in individual topic folders.


๐Ÿ› ๏ธ How to Use

Prerequisites

  • Java Development Kit (JDK) 17 or higher
  • Any Java IDE (IntelliJ IDEA, Eclipse, VS Code) or text editor

Clone the Repository

git clone https://github.com/YOUR_USERNAME/DATA-STRUCTURES-AND-ALGORITHMS.git
cd DATA-STRUCTURES-AND-ALGORITHMS

Running Solutions

Option 1: Using Command Line

# Navigate to the specific problem directory
cd Arrays/Easy

# Compile the Java file
javac TwoSum.java

# Run the compiled class
java TwoSum

Option 2: Using IDE

  1. Open the project in your preferred IDE
  2. Navigate to the desired problem file
  3. Run the file directly from the IDE

Code Structure

Each solution file follows this structure:

/**
 1. Brute
 2. Better
 3. Optimal
 */

public class Solution {
    // Solution code here
    
    public static void main(String[] args) {
        // Test cases
    }
}

๐Ÿ“š Resources

๐ŸŒ Practice Platforms

๐Ÿ“– Learning Materials

๐ŸŽฅ YouTube Channels


๐Ÿค Contributing

Contributions are welcome! If you'd like to contribute:

How to Contribute

  1. Fork this repository
  2. Create a new branch (git checkout -b feature/add-new-problem)
  3. Commit your changes (git commit -m 'Add: [Problem Name]')
  4. Push to the branch (git push origin feature/add-new-problem)
  5. Open a Pull Request

Code Standards

  • โœ… Follow Java naming conventions
  • โœ… Add comments explaining the approach
  • โœ… Include time and space complexity
  • โœ… Add test cases in the main method
  • โœ… Use meaningful variable names
  • โœ… Format code properly (indentation, spacing)

Contribution Guidelines

  • Ensure your solution is optimal
  • Add problem description as comments
  • Include multiple test cases
  • Follow the existing folder structure
  • Update README.md if adding new topics

๐ŸŒŸ Connect With Me

LinkedIn Twitter Email

๐Ÿ’ญ "The only way to learn a new programming language is by writing programs in it." - Dennis Ritchie

โญ If you find this repository helpful, please consider giving it a star!

Happy Coding! ๐Ÿš€


ยฉ 2024 Smruti RAnjan Nayak. All Rights Reserved.

About

Data Structures and Algorithm Questions Solved by me in JAVA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages