vault backup: 2025-03-16 18:59:42
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Compare and contrast a queue with a stack.
|
||||
# Compare and Contrast a Queue with a Stack.
|
||||
|
||||
### **Comparison of Queue and Stack**
|
||||
### **Comparison Of Queue and Stack**
|
||||
|
||||
|**Aspect**|**Stack**|**Queue**|
|
||||
|---|---|---|
|
||||
@@ -47,4 +47,4 @@
|
||||
### **Summary**:
|
||||
|
||||
- A **stack** is suitable for tasks where the most recent action needs to be undone or processed first (**LIFO**).
|
||||
- A **queue** is ideal for tasks where the first action needs to be processed first (**FIFO**).
|
||||
- A **queue** is ideal for tasks where the first action needs to be processed first (**FIFO**).
|
||||
|
Reference in New Issue
Block a user