Skip to content

mohanakrishnavh/practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Java Practice Repository

A comprehensive collection of Java implementations covering Data Structures, Algorithms, Design Patterns, Concurrency, and LeetCode problems.

πŸ“š Table of Contents


πŸ”„ Concurrency

Basics

Prime Number Calculations


πŸ“– Cracking the Coding Interview (CTC)


πŸ—οΈ Design Patterns

Builder Pattern

Composite Pattern

Decorator Pattern

Factory Pattern

Singleton Pattern

Structural Patterns

Adapter Pattern

Bridge Pattern


πŸ—‚οΈ Data Structures & Algorithms (DSA)

Arrays

Sliding Window

Sorting

Backtracking

Bit Manipulation

Design Problems

Depth-First Search (DFS)

Dynamic Programming (DP)

DP - Knapsack Pattern

DP - Matrix Chain Multiplication

DP - Tree Problems

Dynamic Programming (Comprehensive)

Introduction
Longest Common Subsequence (LCS)
Longest Increasing Subsequence (LIS)
One-Dimensional Array Problems
Stock Problems
Subsequences
Two-Dimensional Array Problems

Graph Algorithms

Bipartite

Connected Components

Cycle Detection

Topological Sort

Graph Traversal

Core Graph Classes

Heap / Priority Queue

Heap Problems

K-Way Merge

Two Heaps

Linked List

Mathematics

Matrix

Merge Intervals

Number Problems

Recursion

Basics

Patterns

Problems

Advanced Recursion

Searching (Binary Search)

Stack

String

Tree

Binary Tree Problems

Binary Search Tree (BST)

Core Tree Classes

Trie (Prefix Tree)

Utilities

Demo


β˜• Java Examples


πŸ’» LeetCode Solutions

Problem Solutions (by Number)

1-99

100-199

200-299

300-699

700-999

1000+

Additional Problems


🏒 Low-Level Design (LLD)

Immutability


πŸ“Š Statistics

  • Total Java Files: 400+
  • Design Patterns: 5 main patterns with multiple implementations
  • Data Structures: Arrays, LinkedList, Stack, Queue, Heap, Tree, Graph, Trie
  • Algorithms: Sorting, Searching, DP, Recursion, Backtracking, DFS, BFS
  • LeetCode Problems: 200+ solved

πŸš€ Getting Started

Prerequisites

  • Java 8 or higher
  • Maven (optional, for dependency management)

Running the Code

  1. Clone the repository:
git clone https://github.com/mohanakrishnavh/practice.git
cd practice
  1. Compile a specific file:
javac src/path/to/YourFile.java
  1. Run the compiled class:
java -cp src path.to.YourFile

πŸ“ License

This repository is for educational purposes.


πŸ‘€ Author

Mohanakrishna VH


🀝 Contributing

This is a personal practice repository. Feel free to fork and use for your own learning!


⭐ Show Your Support

Give a ⭐️ if this project helped you!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages