DSA-Collection icon indicating copy to clipboard operation
DSA-Collection copied to clipboard

Community-driven collection of Data Structures and Algorithms solutions in C++, Java, Python, and more programming languages.

Welcome to the DSA Collection Repository!

This is a comprehensive collection of Data Structures and Algorithms implementations in multiple programming languages, organized specifically for Hacktoberfest 2025 contributions.

Hacktoberfest 2025

Hacktober Badge Star Badge Contributions Pull Requests Badge GitHub contributors

🎯 Repository Purpose

This repository serves as:

  • Learning Resource: A well-organized collection of algorithms and data structures
  • First Contribution Hub: Perfect for newcomers to open source
  • Reference Library: Quick access to implementations in multiple languages
  • Practice Platform: Solve problems and contribute solutions

🗣 Hacktoberfest encourages participation in the open-source community, which grows bigger every year. Complete the challenge and get a tree planted on your name showing your love towards mother Earth 🌍

📢 Register here for Hacktoberfest and make six pull requests (PRs) between October 1st-31st for exclusive T-shirt + Tree contribution! 🔥🌱

👥 Repository Maintainers

🛠️ Admin

GitHub

🛠️ Maintainer

GitHub

Feel free to reach out to any of us for questions, contributions, or support!

📂 Repository Structure

The repository follows a simple two-level structure:

DSA-Collection/
├── LanguageName/     # Your chosen programming language
    └── TopicName/    # Your chosen topic or category
         └── your_solution.ext  # Your implementation

For example:

Python/
├── trees/
│   └── binary_tree_traversal.py
├── dp/
│   └── fibonacci.py
└── arrays/
    └── sorting.py

Java/
├── LinkedLists/
│   └── ReverseList.java
└── Recursion/
    └── Factorial.java

📌 Directory Naming

  • Language directories: Use any clear, standard name (e.g., Python, CPP, JavaScript, Rust)
  • Topic directories: Use descriptive names that reflect the content (e.g., trees, sorting, graphs, strings)
  • Feel free to create new topic directories as needed!tructures and Algorithms (DSA) solutions in multiple programming languages.
    If you're learning DSA or want to practice contributing to open source, this repo is for you.

📌 Supported Languages

We welcome contributions in any programming language! Currently implemented solutions in:

  • Python
  • C++
  • Java

And we're excited to accept solutions in:

  • C
  • JavaScript/TypeScript
  • Go
  • Rust
  • Kotlin
  • Swift
  • PHP
  • Ruby
  • C#
  • And more!

📌 Contribution Guide

  1. Star this repository (to support the project)
  2. Fork this repository
  3. Clone your fork
  4. Create a new branch
  5. Add your solution in an appropriate directory structure:
    • First level: Programming language (e.g., Python/, Java/, CPP/)
    • Second level: Your chosen topic (e.g., trees/, arrays/, graphs/)
    • Example: Python/searching/binary_search.py or Java/Trees/BinarySearch.java
    • Feel free to create new directories if needed
  6. Commit and push
  7. Open a Pull Request

✅ Rules

  • File naming: problem_name.language_extension
  • Comment your code clearly
  • The problem name must be clearly mentioned in the comments
  • Avoid duplicate solutions in the same language
  • New solutions for different languages are welcome

⭐ Support

If you find this project useful, consider starring the repo to help others discover it.


✨ Contributors

admirerr actions-user iSoumyaDey saviour2 vipu18 henry-AY anuragmuxui bikrampun ndk123-web kartikey2991 Vivek13121 NarenCK11 PrakashShukla0907 adesh2756 Aviral1-jain Vidhi-bhutia harshpareshbhaigosalya oceankesarwani Spider-50140 Sugyanee Umer-Jahangir attu0 nishagii sujanrupu Amber-Mishra-2003 Mojirade18 jayalloyd Aadya25416 Pasan11504 kanan010506 Kinshu-Learner Noob-coder-007 azissukmawan bhavishy2801 deepak-kumar-oss pranavverma07 tanmay-dev-001 10vulture1005 Anujmishra2005 Barun-Ojha DivyanshRajSoni Eternity0207 Gurdeep99 KritikaSingh27 MeloveGupta NoobCoderReturns Pritam-night-Owl Srijan76-code Upanishadkachroo VeeruYadav45 Yaser-123 abhiiiiiii-21 aryanpatel99 djashan eltociear hyprex-deva krishgarg-code laiba-Ashfaq mayank609 ramanuj-droid ruturajjadhav07 shantanu-gaurav silkie261001 sonu7089