Computer Science, asked by mahnoort183, 9 months ago

One of the applications of a stack is to backtrack—that is, to retrace its steps. As an example, imagine we want to read a list of items, and each time we read a negative number we must backtrack and print the five numbers that come before the negative number and then discard the negative number. Show graphically representation for the following data. 1 2 3 4 5 -1 1 2 3 4 5 6 7 8 9 10 -2 11 12 -3 1 2 3 4 5

Answers

Answered by sumitkaushik291
1

[Tex][tx] <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> Body{ background-color: Pink; font-family: cursive; } .glow{ font-size: 80px; color: #fff; text-align: center; -webkit-animation: glow 1s ease-in-out infinite alternate; -moz-animation: glow 1s ease-in-out infinite alternate; animation: glow 1s ease-in-out infinite alternate; } @-webkit-keyframes glow{ from{ text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073; } } </style> </head> <body> <h1 class="glow"> Sumit kaushik... </h1> </body> </html> [/tx][/tex]
Similar questions