<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Data Structure on Vanslog</title>
    <link>https://vanslog.io/ko/tags/data-structure/</link>
    <description>Recent content in Data Structure on Vanslog</description>
    <generator>Hugo</generator>
    <language>ko</language>
    <lastBuildDate>Fri, 05 May 2023 22:30:19 +0900</lastBuildDate>
    <atom:link href="https://vanslog.io/ko/tags/data-structure/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>[Java] 왜 Stack 대신 Deque를 사용하는가?</title>
      <link>https://vanslog.io/ko/posts/language/java/why-use-deque-instead-of-stack/</link>
      <pubDate>Fri, 05 May 2023 22:30:19 +0900</pubDate>
      <guid>https://vanslog.io/ko/posts/language/java/why-use-deque-instead-of-stack/</guid>
      <description>&lt;h2 id=&#34;stack-대신-deque를-사용하라&#34;&gt;Stack 대신 Deque를 사용하라?&lt;/h2&gt;
&lt;p&gt;평소에 자바를 사용해 알고리즘 문제를 풀면서 &lt;code&gt;Stack&lt;/code&gt; 대신 &lt;code&gt;Deque&lt;/code&gt;를 사용하곤 했습니다.
구글링을 하다 우연히 &lt;code&gt;Stack&lt;/code&gt; 클래스 대신 &lt;code&gt;Deque&lt;/code&gt;를 사용하라는 글을 자주 마주한 것이 계기였습니다.&lt;/p&gt;
&lt;p&gt;하지만 &lt;code&gt;Deque&lt;/code&gt;를 사용해야 되는 이유에 대해 깊은 생각없이 막연히 사용하고 있던 것 같아,
이번 기회에 &lt;code&gt;Stack&lt;/code&gt;과 &lt;code&gt;Deque&lt;/code&gt;의 차이점을 자세히 알아보았습니다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A more complete and consistent set of LIFO stack operations is provided by the Deque interface and its implementations, which should be used in preference to this class. For example:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
