Davinder Singh
Davinder Singh - 4 years ago in Data Structure

The following sequence of operation is performed on stack : push(1),push(2),pop,push(1),push(2),pop,pop,pop,push(2),pop. The sequence of popped out values are ?

[A] 2,2,1,1,2
[B] 2,2,1,2,2
[C] 2,1,2,2,1
[D] 2,1,2,2,2
Loading...

Overall Stats

Attempted 332
Correct 93
Incorrect 59
Viewed 180

Answers

Guest
Guest
Amal Chandran
Amal Chandran - 1 month ago

Amal Chandran is saying 2,2,1,1,2 is correct answer

Jawad Awan
Jawad Awan - 7 months ago

Jawad Awan from Jamshoro, Pakistan is saying 2,2,1,1,2 is correct answer

Mayank Pathak
Mayank Pathak - 8 months ago

Mayank Pathak from Muzaffarpur, India is saying 2,2,1,1,2 is correct answer

akanksha singh
akanksha singh - 8 months ago

akanksha singh from Vadodara, India is saying 2,2,1,1,2 is correct answer

monika
monika - 8 months ago

monika from India is saying 2,2,1,1,2 is correct answer

Related Questions

Davinder Singh
Davinder Singh - 4 years ago in Data Structure
A vertex of degree one is called
  • [A] padent
  • [B] isolated vertex
  • [C] null vertex
  • [D] colored vertex
Davinder Singh
Davinder Singh - 4 years ago in Data Structure
An IP address is a numeric quantity that identifies -
  • [A] a network adapter to other devices on the network
  • [B] the manufacturer of a computer
  • [C] the physical location of a computer
  • [D] none of the above
Davinder Singh
Davinder Singh - 4 years ago in Data Structure
Sparse matrices have ?
  • [A] no zero
  • [B] many zero
  • [C] higher dimenstion
  • [D] none