Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Parihar07/practice_dsa

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

128 Commits
128 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 DSA Practice Repository

Status Focus Languages Platform

A well-organized collection of 500+ Data Structures and Algorithms problems implemented in C++. This repository serves as a comprehensive resource for anyone preparing for technical interviews, competitive programming, or looking to master fundamental CS concepts.

✨ Features

  • 📚 20+ Topics Covered: Arrays, Graphs, Trees, Dynamic Programming, Linked Lists, and more
  • 🔗 Easy Navigation: Every topic has a detailed README with categorized problem listings
  • 💡 Learning-Focused: Each README includes key concepts, patterns, and practical tips
  • 🎯 Interview Ready: Covers common patterns asked in FAANG and top tech companies
  • ⚡ Clean Code: Well-structured C++ implementations
  • 📖 Beginner Friendly: Topics explained with tips for all skill levels

🗂️ Repository Structure

practice_dsa/
├── problems/
│   └── cpp/
│       ├── arrays/              (120+ problems)
│       ├── graphs/              (60+ problems)
│       ├── trees/               (40+ problems)
│       ├── linked_list/         (45+ problems)
│       ├── dynamic_programming/ (19 problems)
│       ├── math/                (28 problems)
│       ├── binary_search/       (8 problems)
│       ├── bit_manipulation/    (8 problems)
│       ├── stack/               (11 problems)
│       ├── heaps/               (7 problems)
│       ├── strings/             (10 problems)
│       └── ... (more topics)      
└── README.md

Each problem follows the structure: problems/cpp/<topic>/<problem>/

🎓 Topics

All topics are under problems/cpp/ with comprehensive README files:

Core Data Structures

  • Arrays (README) - 120+ problems covering subarrays, matrices, searching, sorting, two-pointers, prefix sums, and more
  • Linked Lists (README) - 45+ problems on singly/doubly linked lists, reversal, merging, cycle detection, LRU cache
  • Trees (README) - 40+ problems on binary trees, BST, traversals, LCA, tree construction, binary lifting
  • Graphs (README) - 60+ problems covering DFS, BFS, shortest paths, MST, topological sort, bridges, articulation points
  • Stack (README) - Stack problems including balanced parentheses, monotonic stack, histogram problems
  • Heaps (README) - Priority queue and heap problems
  • Strings (README) - String manipulation, palindromes, pattern matching, trie applications

Algorithmic Techniques

Mathematical

  • Math (README) - 28 problems on GCD, primes, modular arithmetic, factorials, perfect numbers
  • Hashing (README) - Hash table problems

Advanced Topics

🚦 Getting Started

  1. Clone the repository:

    git clone https://github.com/Parihar07/practice_dsa.git
    cd practice_dsa
  2. Navigate to a topic (e.g., arrays):

    cd problems/cpp/arrays
  3. Compile and run any problem:

    cd array_sorted
    g++ -std=c++17 *.cpp -o solution.out
    ./solution.out

💻 Development Setup

  • Language: C++11/C++17
  • Compiler: g++ / clang++
  • IDE: VS Code (configured with tasks.json and launch.json)
  • Debugger: CodeLLDB extension for debugging

🎯 Use Cases

  • Interview Preparation: Practice common patterns asked in coding interviews
  • Competitive Programming: Build problem-solving skills
  • Learning DSA: Understand core computer science concepts
  • Reference: Quick lookup for algorithm implementations

🤝 Contributing

Contributions are welcome! Feel free to:

  • Add new problems
  • Improve existing solutions
  • Fix bugs or add test cases
  • Enhance documentation

Please follow the existing naming convention: topic_problemname/

📝 License

This repository is open source and available for educational purposes.


Star this repo if you find it helpful!

Happy Coding! 💻🚀

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.