This repository is a curated collection of Data Structures & Algorithms implemented in Java.
Whether you're preparing for:
π― Coding Interviews
π― Placement Exams
π― Competitive Programming
π― University Coursework
this repository provides clean and beginner-friendly implementations of important algorithms.
| Algorithm | Time Complexity |
|---|---|
| Linear Search | O(n) |
| Binary Search | O(log n) |
| Algorithm | Best | Average | Worst |
|---|---|---|---|
| Bubble Sort | O(n) | O(nΒ²) | O(nΒ²) |
| Selection Sort | O(nΒ²) | O(nΒ²) | O(nΒ²) |
| Insertion Sort | O(n) | O(nΒ²) | O(nΒ²) |
| Merge Sort | O(n log n) | O(n log n) | O(n log n) |
| Quick Sort | O(n log n) | O(n log n) | O(nΒ²) |
| Heap Sort | O(n log n) | O(n log n) | O(n log n) |
| Counting Sort | O(n+k) | O(n+k) | O(n+k) |
| Radix Sort | O(nk) | O(nk) | O(nk) |
β Activity Selection
β Fractional Knapsack
β Job Scheduling
β Dijkstra's Algorithm
β Prim's Algorithm
β Longest Common Subsequence (LCS)
β Matrix Chain Multiplication
β 0/1 Knapsack
β N-Queens Problem
π¦ Java-Algorithms-and-Data-Structures
βββ π Searching
βββ βοΈ Sorting Problems
βββ π― Greedy Problems
βββ β‘ Dynamic Problems
βββ π³ Branch and Bound Problems# Clone repository
git clone https://github.com/Rekshit/Data-Analysis-and-Algorithm.git
# Open project
cd Data-Analysis-and-Algorithm
# Compile
javac FileName.java
# Run
java FileNameSearching
β
Sorting
β
Greedy Algorithms
β
Dynamic Programming
β
Branch & Bound
β Problem Solving
β Algorithm Design
β Time Complexity Analysis
β Java Programming
β Dynamic Programming
β Greedy Strategies
β Optimization Techniques