<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Arya P on Medium]]></title>
        <description><![CDATA[Stories by Arya P on Medium]]></description>
        <link>https://medium.com/@arya_p?source=rss-d9fafb5a9d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GWvd6L0nwb6b0xYm.jpg</url>
            <title>Stories by Arya P on Medium</title>
            <link>https://medium.com/@arya_p?source=rss-d9fafb5a9d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 04:34:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arya_p/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Queue using Dart]]></title>
            <link>https://medium.com/@arya_p/queue-using-dart-36ff667eaf?source=rss-d9fafb5a9d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/36ff667eaf</guid>
            <category><![CDATA[queue]]></category>
            <dc:creator><![CDATA[Arya P]]></dc:creator>
            <pubDate>Thu, 23 Jun 2022 16:26:32 GMT</pubDate>
            <atom:updated>2022-06-23T16:26:32.866Z</atom:updated>
            <content:encoded><![CDATA[<p>A <strong>queue</strong> is linear data structure that follow a <strong>first-in-first-out</strong> sequence. This implies that the first item to be inserted will be the first to be removed. You can also say that items are removed in the order they were inserted.</p><p><strong>Queue operations:</strong></p><ol><li>Enqueue: Inserts an element into the queue.</li><li>Dequeue: Removes an element from the queue.</li></ol><blockquote>void main() {<br> final queue = Queue&lt;int&gt;();<br> queue.enqueue(1);<br> queue.enqueue(2);<br> queue.enqueue(3);<br> queue.enqueue(4);</blockquote><blockquote>print(queue);</blockquote><blockquote>final element = queue.dequeue();<br> print(‘dequeue: $element’);<br> print(“after dequeue an element\n $queue”);</blockquote><blockquote>}</blockquote><blockquote>class Queue&lt;E&gt; {<br> final List&lt;E&gt; list = [];</blockquote><blockquote>@override<br> String toString() {<br> return<br> ‘${list}’;</blockquote><blockquote>}<br> void enqueue(E element) =&gt; list.add(element);</blockquote><blockquote>bool get isEmpty =&gt; list.isEmpty;</blockquote><blockquote>E dequeue() =&gt;(isEmpty)?throw “queue underflow”: list.removeAt(0);</blockquote><blockquote>}</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36ff667eaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Structure]]></title>
            <link>https://medium.com/@arya_p/data-structure-6e7f1b26236c?source=rss-d9fafb5a9d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e7f1b26236c</guid>
            <category><![CDATA[stack]]></category>
            <dc:creator><![CDATA[Arya P]]></dc:creator>
            <pubDate>Wed, 22 Jun 2022 12:52:21 GMT</pubDate>
            <atom:updated>2022-06-22T12:52:21.498Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>Stack</strong></li></ol><p><strong>Stack</strong> is a linear data structure that follows a particular order in which the operations are performed. The order may be <strong>LIFO(Last In First Out)</strong> or FILO(First In Last Out). This strategy states that the element that is inserted last will come out first.</p><p><strong>Operations in Stack</strong></p><ol><li><strong>Push(): </strong>Insert an element into the stack.</li><li><strong>Pop() : </strong>Remove an element from the stack.</li></ol><p><em>Source Code</em></p><blockquote>void main() {<br> final myStack = Stack&lt;String&gt;();</blockquote><blockquote>myStack.push(‘A’);<br> myStack.push(‘B’);<br> myStack.push(“C”);<br> myStack.push(“D”);<br> myStack.push(“E”);</blockquote><blockquote>print(myStack.toString());<br> <br> var element = myStack.pop();<br> print(element);<br> <br> }</blockquote><blockquote>class Stack&lt;E&gt; {<br> List&lt;String&gt; list =[];<br> push(String e){<br> list.add(e);<br>}<br>String pop()=&gt;list.removeLast();</blockquote><blockquote>@override<br> String toString() =&gt; list.toString();<br>}</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e7f1b26236c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>