Where have you seen ๐๐ฎ๐๐ฎ ๐ฆ๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ๐ in ๐ฟ๐ฒ๐ฎ๐น ๐๐ถ๐บ๐ฒ ๐๐ฝ๐ฝ๐น๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป๐ ?
๐๐๐๐๐ :
1) UNDO option
2) Text editor, you push letter by letter to the stack so you erase back.
3) Recursion (in built stack)
๐๐๐๐๐ :
1) Your browser deletes the history past one month.
2) If you delete a picture in your phone, it will be the โrecently deleteโ folder which says โthe images will be deleted permanently after one weekโ.
Here all the images are stored in the queue so itโs easier to pop from the rear based on the image deletion date.
3) Waiting list: during online registrations, sometimes you Il be put into waiting list. basically, all the requests will be stored in the queue.
๐๐๐๐๐๐ ๐๐๐๐ :
1) Browserโs Next and Previous Button: a linked list of URLs
2) music player where you can play the next or previous song. (Doubly linked list).
3) In Ludo game, it had passed the turn to each player in a circular fashion (circular linked list).
๐๐๐๐๐ :
1) File system: Folders and subfolders (N-ary tree).
2) e-commerce websites : category -> subcategories -> products
3) Auto-suggestion when you google (Trie)
๐๐๐๐๐๐ :
1) Uber, Ola cab booking show nearest available cars (BFS)
2) Maven dependencies build order (Topological sorting (DFS))
3) While booking bus/flights, you get a list of available routes.
4) In Facebook, users are considered to be the vertices and if they are friends then there is an edge running between them. Facebookโs Friend suggestion algorithm uses graph theory. Facebook is an example of an undirected graph.
๐๐๐ฅ๐ฅ๐ฎ ๐ก๐๐๐ง๐ฃ๐๐ฃ๐ ๐๐ช๐ฎ๐จ :)
Follow me on Twitter