When to use and when to avoid stack¶
When to use¶
- When we need to manage data in LIFO manner
- Cannot be easily corrupted (no one can insert data at the middle)
When to avoid¶
- Random access is not possible - if we have done a mistake, it is costly to rectify it.