Loading repovive.com/roadmaps/cpp
Roadmaps
C++
Dynamic Memory
Problemset
Discussion
AI Helper
Getting Started
0/48
Variables & Data Types
0/57
Input & Output
0/48
Operators & Expressions
0/52
Control Flow
0/53
Loops
0/58
Arrays
0/50
Strings
0/46
Functions
0/50
Pointers & References
0/52
Structs
0/44
Vectors & STL Basics
0/48
Maps & Sets
0/52
Pairs & Tuples
0/53
STL Algorithms
0/50
Classes & Objects
0/54
Inheritance & Polymorphism
0/56
File I/O
0/49
Exception Handling
0/54
Dynamic Memory
0/50
1
Intro
2
Stack vs Heap
3
Stack Memory
4
Heap Memory
5
The new Operator
6
Quiz: Memory Basics
7
The delete Operator
8
new and delete for Arrays
9
Quiz: Memory cleanup
10
Quiz: new and delete
11
Memory Leaks
12
Dangling Pointers
13
Double Delete
14
nullptr After delete
15
When to Use Dynamic Memory
16
Quiz: Memory cleanup
17
Dynamic Arrays
18
Resizing Dynamic Arrays Manually
19
Quiz: Memory Leaks
20
Problems with Raw Pointers
21
Introduction to Smart Pointers
22
What is unique_ptr?
23
Creating unique_ptr
24
unique_ptr Automatic Cleanup
25
Quiz: Knowledge check
26
Moving unique_ptr
27
Quiz: unique_ptr
28
What is shared_ptr?
29
Creating shared_ptr
30
Reference Counting
31
When shared_ptr Deletes
32
Quiz: Variable alias
33
weak_ptr Basics
34
Quiz: shared_ptr
35
Choosing the Right Smart Pointer
36
Smart Pointers vs Raw Pointers
37
Practice Problems
38
Quiz: Smart Pointer Choice
39
Problem - Flexible Array
40
Flexible Array - The Idea
41
Flexible Array - Algorithm
42
Flexible Array - Implementation
43
Lessons from Flexible Array
44
Problem - Node Creation
45
Node Creation - The Idea
46
Node Creation - Algorithm
47
Quiz: Knowledge check
48
Node Creation - Implementation
49
Lessons from Node Creation
50
Section Recap
20.1
Intro
4 minutes
100%
Tasks
Read Unit