Concept of stack ,stack of aaray stack by linked list , application of stack recursion
muskankumari7360
140 views
36 slides
Mar 28, 2024
Slide 1 of 36
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
About This Presentation
A stack is a linear data structure that follows the Last In, First Out (LIFO) principle, meaning the last element added to the stack is the first one to be removed. Elements can only be added or removed from the top of the stack. This structure resembles a stack of plates, where you can only add or ...
A stack is a linear data structure that follows the Last In, First Out (LIFO) principle, meaning the last element added to the stack is the first one to be removed. Elements can only be added or removed from the top of the stack. This structure resembles a stack of plates, where you can only add or remove plates from the top of the pile. Stacks are commonly used in computer science for tasks such as function call management, expression evaluation, and undo functionality in applications.