Personal blog

Writing every week about programming, new technology and books.

DATA STRUCTURES AND ALGORITHMS

Stack and Queue Explained And Implemented in C#

09-Oct-2020
Stack and Queue Explained And Implemented in C#

In today's video, I explained what are Stack and Queue data structures, how they work, and I also implemented them in C#. In the video, I forgot to mention that the time complexity for executing any of these methods is O(1). That is constant time and that means that no matter how many elements are inside the stack or queue time that takes to execute them will always bee the same.