Differentiate STACK from ARRAY.
4 years ago
Data Structure and Algorithm
Stack follows a LIFO pattern. It means that data access follows a sequence wherein the last data to be stored when the first one to be extracted. Arrays, on the other hand, does not follow a particular order and instead can be accessed by referring to the indexed element within the array.
Sujan Bk
Jan 9, 2022