{"id":6357,"date":"2025-11-07T11:24:42","date_gmt":"2025-11-07T05:54:42","guid":{"rendered":"https:\/\/study.madeeasy.in\/?p=6357"},"modified":"2025-11-13T12:01:52","modified_gmt":"2025-11-13T06:31:52","slug":"stack","status":"publish","type":"post","link":"https:\/\/www.madeeasy.in\/study\/cs-it\/stack","title":{"rendered":"Stack and Its Operations"},"content":{"rendered":"<p>\u201cA stack is an ordered list in which all insertions and deletions are made at one end, called the top.\u201d<br \/>\nStacks are sometimes referred to as Last In First Out (LIFO) lists.<\/p>\n<p>Example: Real life: Plates stacked over one another. The plate, which is at the top has to be removed first<br \/>\nand the plate, which is the bottom, remains in the stack for the longest period of time.<\/p>\n<p><strong> OPERATION ON STACK<\/strong><\/p>\n<p>Stacks have some useful terminology associated with them:<\/p>\n<ul>\n<li>Push To add an element to the stack.<\/li>\n<li>Pop To remove an element from the stack.<\/li>\n<li>Peek To look at elements in the stack without removing them.<\/li>\n<li>LIFO Refers to the last-in, first-out behavior of the stack.<\/li>\n<li>FILO Equivalent to LIFO (first in, last out).<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201cA stack is an ordered list in which all insertions and deletions are made at one end, called the top.\u201d<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,94],"tags":[1879,1878,1880],"class_list":["post-6357","post","type-post","status-publish","format-standard","hentry","category-cs-it","category-operating-system","tag-filo","tag-lifo","tag-stack"],"_links":{"self":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/6357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/comments?post=6357"}],"version-history":[{"count":0,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/6357\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/media?parent=6357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/categories?post=6357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/tags?post=6357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}