Question DSA-STK-0054
MediumHow does an array-based stack detect overflow?
- A.
The array becomes sorted
- B.
top reaches the array's capacity − 1 before a push
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Stacks question
How does an array-based stack detect overflow?
The array becomes sorted
top reaches the array's capacity − 1 before a push
Sign up free to see the answer and a step-by-step explanation.
top becomes −1
It cannot