Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does the push method do in a Stack?
Think about adding a new book on top of a stack of books.
What does pop do in a Stack?
Consider what happens if you remove the topmost book.
What does the 'push' operation do in a stack?
Think about stacking items vertically.
True or False: The peek operation removes the top element.
Is it more like checking the time on a clock or taking it off the wall?
Implement a method in Java that checks for balanced parentheses in an expression using a Stack.
Consider what happens when you find an opening or closing parenthesis.
Write a Java program that converts a decimal number to binary using a Stack.
How do the remainders help in forming the binary number?
5 more questions in this section. Enroll free to practise them all.
Enroll free