A comprehensive collection of basic data structures, mathematical utilities, and sorting/searching algorithms implemented in C++. Ideal for beginners, students, and interview preparation.
- Arrays
- Stack (Array-based & Linked List-based)
- Queue
- Linear Queue
- Circular Queue
- Double-ended Queue
- Singly Linked List
- Doubly Linked List
- Hash Table (basic implementation)
- Binary Search Tree (BST)
- Area & Perimeter of:
- Triangle
- Rectangle
- Square
- Parallelogram
- Trapezoid
- Factorial (Iterative & Recursive)
- Fibonacci Sequence
- GCD (Greatest Common Divisor)
- LCM (Least Common Multiple)
- Quick Sort
- Merge Sort
- Insertion Sort
- Bubble Sort
- Linear Search
- Binary Search
- Built-in C++ Standard Library Functions (
<algorithm>,<cmath>,<string>, etc.) - File Handling (read/write to text files)
- C++17 or above
- C++ compiler (e.g.
g++,clang++,MSVC)
Clone the repository:
git clone https://github.com/AbdoJoker99/Cpp-
Download MSYS2 from https://www.msys2.org
-
Install and open the MSYS2 terminal
-
Update the package database and core system packages:
pacman -Syu
🔁 Restart the terminal when prompted, then continue:
pacman -Su
-
Install GCC and Build Tools:
pacman -S mingw-w64-ucrt-x86_64-gcc
-
[Recommended Fix] GPG Key Issue (if package installation fails):
If you encounter an error related to invalid or missing GPG keys when installing packages, run:
pacman -S gnupg
Then initialize the keyring with:
pacman-key --init pacman-key --populate msys2
-
Use the MSYS2 MinGW UCRT 64-bit terminal to compile your code:
g++ -std=c++17 -o program your_code.cpp ./program
| Name | GitHub |
|---|---|
| Abdo | @AbdoJoker99 |
- CF Analytics – Codeforces contest data analytics
- CF-Predictor – Predict problem difficulty on Codeforces
- Carrot – Competitive programming helper
- WebChatGPT: ChatGPT with internet access – Extend ChatGPT with live web data
- Code Runner – Run code snippets quickly
- Competitive Programming Helper (CPH) – Manage contests and solutions
Sharpen your skills on these coding platforms:
- LeetCode – Popular for interviews and competitive prep
- Codeforces – Competitive programming contests
- HackerRank – C++ and DSA practice tracks
This project is licensed under the Apache License.
See the LICENSE file for more information.