Skip to content

About

C++17 implementations of classic sorting algorithms (Bubble, Selection, Insertion, std::sort) with GoogleTest unit tests and CMake build.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

📊 Sorting Algorithms — C++17

Учебный проект с реализацией классических алгоритмов сортировки на C++17 и юнит-тестами на GoogleTest.

Build License: MIT C++ CMake

✨ Возможности

  • 🫧 Bubble Sort
  • 🔍 Selection Sort
  • 🧩 Insertion Sort
  • ⚡ std::sort
  • 🧪 Юнит-тесты на GoogleTest
  • 🛠 Сборка через CMake

🚀 Сборка

Зависимости

sudo apt update
sudo apt install g++ cmake make libgtest-dev

Сборка

git clone https://github.com/USERNAME/sorting-algorithms.git
cd sorting-algorithms
mkdir build && cd build
cmake -DBUILD_TESTS=ON ..
make -j$(nproc)

Запуск

# Основная программа
./build/sorting

# Тесты
cd build && ctest --output-on-failure

📁 Структура

.
├── CMakeLists.txt
├── include/
│   ├── print.h
│   └── sorting.h
├── src/
│   ├── memoris.cpp
│   ├── print.cpp
│   └── sorting.cpp
└── tests/
    └── test_sorting.cpp

📄 Лицензия

MIT — см. LICENSE.

About

C++17 implementations of classic sorting algorithms (Bubble, Selection, Insertion, std::sort) with GoogleTest unit tests and CMake build.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages