Tag: beginners
All the articles with the tag "beginners".
-
Queue vs Stack in C++: LIFO vs FIFO, STL & Practical Comparison
Understand the difference between Queue and Stack in C++. Compare FIFO vs LIFO ordering, insertion and deletion ends, accessible elements, std::queue vs std::stack in C++ STL, visual element traces, time complexity, and when to use each.
-
Queue Implementation Using Array in C++: Linear & Circular Queue Guide
Learn how to implement a Queue from scratch using a fixed-size array in C++. Master front and rear index management, enqueue and dequeue operations, Queue Overflow and Underflow, visual dry runs, linear Queue limitations, and Circular Queue improvements.
-
Understanding Queue in C++: Complete Beginner's Guide
Learn the Queue data structure in C++ from scratch. Understand the FIFO (First-In, First-Out) principle, core Queue operations (enqueue, dequeue, front, rear, empty, size), std::queue in C++ STL, real-world examples, and time complexity.
-
Stack Using Array: Fixed-Size Implementation, Overflow & Dry Run
Learn how to implement a Stack using a fixed-size array in C++ without STL. Understand why top starts at -1, how push and pop work, Stack Overflow and Underflow, visual dry runs, and why pop() doesn't erase physical memory.