<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Stacks on Algorithms in 60 Days</title><link>https://algorithmsin60days.com/tags/stacks/</link><description>Recent content in Stacks on Algorithms in 60 Days</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 10 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://algorithmsin60days.com/tags/stacks/index.xml" rel="self" type="application/rss+xml"/><item><title>Stacks and Queues: A Study Guide</title><link>https://algorithmsin60days.com/topics/stacks-and-queues/</link><pubDate>Fri, 10 Jul 2026 00:00:00 +0000</pubDate><guid>https://algorithmsin60days.com/topics/stacks-and-queues/</guid><description>&lt;p&gt;Stacks and queues are the two simplest ordered collections, and they differ by a single rule: which end you remove from. A &lt;strong&gt;stack&lt;/strong&gt; is last-in, first-out (LIFO): the most recently added item leaves first. A &lt;strong&gt;queue&lt;/strong&gt; is first-in, first-out (FIFO): items leave in arrival order. That one distinction decides whether you get depth-first or breadth-first behavior, undo history or task scheduling.&lt;/p&gt;

&lt;h2 id="why-they-matter"&gt;Why They Matter&lt;a class="header-anchor" href="#why-they-matter" aria-label="Permalink to this heading"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;These structures are the quiet engines behind a surprising number of algorithms. Depth-first search uses a stack (often the call stack). Breadth-first search uses a queue. Expression parsing, matching brackets, backtracking, and the monotonic-stack pattern are all stack problems. Sliding-window maximums and level-order tree traversals are all queue problems.&lt;/p&gt;</description></item></channel></rss>