DSA using C++
Sorting, searching and graphs — watch every algorithm move.
Introduction to DSA and C++ Setup
Meet data structures and algorithms, compile your first C++ program, and watch a max-scan sweep six quiz scores.
Algorithm Analysis and Complexity
Count loop steps by hand, fill a triangular pair census, then watch O(n squared) explode as n keeps doubling.
Arrays and Vectors
Watch a vector erase shift seven boxes left, then fill an int array in 3D memory one write at a time.
Strings and Character Processing
Walk two pointers into a palindrome and shift every letter of zyx three steps to land on cab.
Searching Algorithms
Hunt for 55 in a sorted array and watch binary search shrink the window in half at every comparison.
Sorting Algorithms – Basics
Watch the biggest bar bubble home, a key slide into a sorted hand, and every pass shrink the unsorted rest.
Efficient Sorting Algorithms
Watch a pivot land in its final home and eight bars split, zip and merge into O(n log n) order.
Recursion and Backtracking Basics
Watch factorial(4) stack four frames and unwind to 24 — then trace fibonacci’s tree as it recomputes the same values.
Singly Linked Lists
Build a chain of nodes with O(1) head inserts, walk to the tail, then unlink 23 mid-list — every move is a pointer write.
Doubly and Circular Linked Lists
Watch head and tail rewire a doubly list in O(1), then follow a ring that loops back onto its own head.
Stacks
Push, pop and peek your way to LIFO mastery — then watch the call stack juggle function frames in 3D.
Queues and Deques
Watch a print queue drain in strict FIFO order, then chase window maxima through an array with a deque.
Hashing and STL Associative Containers
Watch hash(key) fling keys into buckets, collide and chain — then meet the two STL maps behind the magic.
Trees and Binary Trees
Watch an inorder walk mark every node in visit order — then see why that same order prints a BST sorted.
Binary Search Trees and Heaps
Watch inserts compare their way down a BST — then a new minimum sift all the way to the top of a min-heap.
Graph Fundamentals and Traversals
Watch BFS flood a five-server network in hops — then send DFS diving down one cable at a time.
Graph Algorithms
Follow Dijkstra settle the cheapest routes on a priced map — then watch Prim wire the same map for less.
Greedy Algorithms
Watch a cashier grab the biggest coin that fits and a scheduler pack the most activities — one choice at a time, never looking back.
Dynamic Programming
Watch a knapsack DP table fill row by row to a value of 7 — and stair-count ways stack up from two base cells.
Advanced Problem Solving and Revision
Race two pointers to a pair summing to 20, slide a window under budget 9, then pocket the course complexity cheat-sheet.