30 days c++ course

I want to learn data structures and algorithms in c++. The course should be 30 days long. Each day, i want to solve a new challenge. i want to learn these topic in order: Arrays, linked lists, stacks and queues, trees, graphs. In each topic, put the challenges from easy to hard order.

Section Menu

How do I use this section?

1. LESSON

Arrays

Introduction to Arrays Arrays are one of the fundamental data structures in C++. They allow us to store multiple elements of the same type in a contiguous block of memory. Arrays are often used to represent collections of similar objects. Arrays can be declared and initialized as follows: int myArray[5]; myArray[0] = 10; myArray[1]...

2. LESSON

Linked Lists

In a linked list, each element is called a node. Each node consists of two parts: the data and a reference (also called a pointer) to the next node. Here's an example of a simple linked list implemented using C++: #include using namespace std; int main() { // Linked List implementation // Node structur...

3. LESSON

Stacks and Queues

Introduction to Stacks In the field of computer science and programming, a stack is an abstract data type that represents a collection of elements. It follows the Last-In-First-Out (LIFO) principle, meaning that the last element added to the stack is the first one to be removed. #include using namespace std; int mai...

4. LESSON

Trees

What are Trees? In computer science, a tree is a widely used data structure that represents a hierarchical structure. It consists of a set of nodes connected by edges. The topmost node in a tree is called the root node, and each node in the tree can have zero or more child nodes. The tree structure is commonly used to represen...

5. LESSON

Graphs

Introduction to Graphs Graphs are a fundamental data structure in computer science. They are composed of a collection of vertices and edges. Vertices represent the entities, while edges represent the relationships between the entities. In simpler terms, graphs are used to model relationships between objects. Graphs can be used to represent a wid...