Welcome to my C++ code repository, where you can explore a range of programs covering fundamental data structures and algorithms. Whether you're a beginner or an experienced coder, you'll find these examples useful for learning and reference.
This repository contains a collection of C++ code examples that focus on data structures and algorithms. Each code snippet is accompanied by detailed explanations of its functionality and usage.
Linked Lists
File Name
Description
singly_linked_list.cpp
Implementation of a singly linked list.
doubly_linked_list.cpp
Implementation of a doubly linked list.
Stacks and Queues
File Name
Description
stack.cpp
Implementation of a stack data structure.
queue.cpp
Implementation of a queue data structure.
Trees
File Name
Description
binary_tree.cpp
Implementation of a binary tree data structure.
bst.cpp
Implementation of a binary search tree (BST).
Graphs
File Name
Description
visit_every_city.cpp
Depth-First Search (DFS) on a graph.
graph_traversal.cpp
Graph traversal using a stack.
Heaps
File Name
Description
min_heap.cpp
Implementation of a MinHeap data structure.
max_heap.cpp
Implementation of a MaxHeap data structure.
How to Use
Clone the repository to your local machine using git clone.
Navigate to the directory of the desired C++ file in your terminal.
Compile the C++ file using a C++ compiler (e.g., g++).
Run the compiled executable to see the output of the program.
Contributing
Contributions to this repository are welcome! If you have new C++ code samples or improvements to existing ones, please create a pull request.
Initial Contributor
All the code in this repository has been contributed by me.
LinkedIn Facebook Instagram Twitter
About
C++ code examples that focus on data structures and algorithms.