1950 Views

Consider the process of balancing symbols using stack. What characters will be pushed into the Stack?


Pavan 23rd Oct, 2018
Answer (1)
Vikas gehlot 23rd Oct, 2018

Stacks are used where there is a long expression to be evaluated which is having many brackets to guide us so that which operations need to carried out first.

Now stacks work according to last In first out concept that is The elements which are at the end of the stack can be popped out, For example, consider a stack of books You can only remove a book which is at the top.


This concept is employed in Bracket matching, where opening brackets are pushed In into the stack and closing brackets are popped out, if after all the brackets are covered and if we find our stack to be empty we say that bracket matching is successful.

Therefore the answer to Your Problem is C.


Related Questions

VIT Bhopal University | M.Tec...
Apply
M.Tech admissions open @ VIT Bhopal University | Highest CTC 52 LPA | Apply now
Amity University | M.Tech Adm...
Apply
Ranked amongst top 3% universities globally (QS Rankings).
Amity University Noida MBA Ad...
Apply
Amongst top 3% universities globally (QS Rankings)
Graphic Era (Deemed to be Uni...
Apply
NAAC A+ Grade | Among top 100 universities of India (NIRF 2024) | 40 crore+ scholarships distributed
XAT- Xavier Aptitude Test 2026
Apply
75+ years of legacy | #1 Entrance Exam | Score accepted by 250+ BSchools | Apply now
Amity University Noida B.Tech...
Apply
Among Top 30 National Universities for Engineering (NIRF 2024) | 30+ Specializations | AI Powered Learning & State-of-the-Art Facilities
View All Application Forms

Download the Careers360 App on your Android phone

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

150M+ Students
30,000+ Colleges
500+ Exams
1500+ E-books