Let's search website https://google.com .
Top - Google
Again search https://youtube.com
Top -Youtube
Google
We decided to go to back
Youtube - Pop
Google - Top
Again decided to go to back
Browser is showing to search . Means in the array there is no website.
So , What is stack ?
It is a data structure. It follows LIFO approach
Top comments (0)