Rather than backing the stack with an array, use a singly linked list as storage and provide push, pop, peek, and isEmpty so the top of the stack always corresponds to one specific end of the list.
244 problems. 216 MCQs. Practice by topic or by role — both included in one purchase.
Write C. Run code. Check the output.
124 problems
Practise commands in a Linux terminal.
80 problems
Practise tasks and scheduling in C.
40 problems
Check your fundamentals. Review explanations.
216 questions
₹399 ₹699
12 months · One-time payment
No automatic renewal.
Get Embedded Lab access →Free account required · No time limit
Courses, projects and Interview Prep are separate purchases.