What is the Role of push() and pop() method?



What is the Role of push() and pop() method?..

Answer / Priyanka Nigam

push() is a function used to add an element at the end of a data structure like a stack or a queue. On the other hand, pop() is a function used to remove the last added element from a stack or a queue.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is insertion sort technique?

1 Answers  


Write a recursive c function to calculate the height of a binary tree.

1 Answers  


Differentiate between set and map.

1 Answers  


Which interfaces are implemented by linkedhashset?

1 Answers  


Why is quicksort so fast?

1 Answers  


Explain multiply linked list in short.

1 Answers  


List out the disadvantages of using a linked list?

1 Answers  


What is difference between arraylist and linkedlist?

1 Answers  


What is complexity of quicksort?

1 Answers  


How does quick sort work?

1 Answers  


Write a program for reversing the Single Linked List?

1 Answers   Honeywell, Zomato,


How would you swap the Kth node from beginning with Kth node from end in a Linked List.

1 Answers   DELL,


Categories