Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

🧠 Data Structures in C++

A clean, modern practice repository for classic data structures and algorithms β€” all implemented in C++17! πŸ’»βœ¨

Perfect for learning, experimenting, or brushing up your fundamentals with real code.


πŸ› οΈ Requirements

  • C++17-compatible compiler
    (GCC 9+, Clang 10+, MSVC 19.20+)
  • CMake β‰₯ 3.16
  • Build system: Make, Ninja, or MinGW (or just use an IDE!)

πŸ—‚οΈ Project Structure

β”œβ”€β”€ exercises/ β†’ πŸš€ One `.cpp` file = one standalone executable (great for quick experiments!)
β”œβ”€β”€ projects/
β”‚ └── banking-app/ β†’ πŸ’Ό A small but complete project example (OOP + data structures in action)
β”œβ”€β”€ samples/ β†’ πŸ“š Clean, well-commented reference implementations
└── README.md β†’ You're reading it! 😊

▢️ How to Build & Run

πŸ’‘ With CLion (recommended)

  1. Open the folder in CLion
  2. CMake auto-configures everything
  3. Press Run or Build β€” done! 🎯

πŸ’» From Terminal

# Clone (if needed) and enter the repo
cd data-structures-cpp
# Create and enter build directory
mkdir -p build && cd build
# Configure with CMake
cmake .. -G "MinGW Makefiles" # πŸͺŸ Windows
# OR
cmake .. -G "Unix Makefiles" # 🐧 Linux / 🍏 macOS
# Build everything in Release mode
cmake --build . --config Release
# Run your code!
./exercises/exercise_001 # πŸ” Try an exercise
./projects/banking-app/banking_app # πŸ’° Explore the banking demo
./samples/sample_001 # πŸ“˜ Study a clean implementation

βœ… Pro Tip: All executables are built with the same name as their source file!


βž• Adding a New Exercise

Just drop a new .cpp file into the exercises/ folder β€” CMake auto-detects it and builds a dedicated executable! πŸͺ„

Example:

echo 'int main() { return 0; }' > exercises/my_new_ds.cpp
# Re-run cmake --build . and you're ready to go!

Happy coding! πŸŽ‰
May your pointers be safe and your builds green. 🌿

About

A simple project to practice and implement Data Structures & Algorithms (DSA) using C++.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /