1.

Which is the most appropriate data structure for applying balancing of symbols algorithm?(a) stack(b) queue(c) tree(d) graphI want to ask this question from Application of Stacks topic in portion Application of Stacks of Data Structures & Algorithms II had been asked this question in homework.

Answer»

The correct answer is (a) stack

Best explanation: Stack is the most APPROPRIATE data structure for BALANCING symbols algorithm because stack follows LIFO principle (LAST In FIRST Out).



Discussion

No Comment Found

Related InterviewSolutions