<?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 Ritesh Pawar on Medium]]></title>
        <description><![CDATA[Stories by Ritesh Pawar on Medium]]></description>
        <link>https://medium.com/@pawar.ritesh4u?source=rss-b4faebd1b529------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-H4BHpAw67y_cG-V</url>
            <title>Stories by Ritesh Pawar on Medium</title>
            <link>https://medium.com/@pawar.ritesh4u?source=rss-b4faebd1b529------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:02:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pawar.ritesh4u/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[Implementing Stack data structure in Go]]></title>
            <link>https://levelup.gitconnected.com/implementing-stack-data-structure-in-go-99ea1049146c?source=rss-b4faebd1b529------2</link>
            <guid isPermaLink="false">https://medium.com/p/99ea1049146c</guid>
            <category><![CDATA[stack-data-structure]]></category>
            <category><![CDATA[stack]]></category>
            <category><![CDATA[golang-tutorial]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Ritesh Pawar]]></dc:creator>
            <pubDate>Sat, 04 Oct 2025 14:30:22 GMT</pubDate>
            <atom:updated>2025-10-06T12:06:09.404Z</atom:updated>
            <content:encoded><![CDATA[<h3>Basic implementation of Stack data structure in Go</h3><p>Dealing with Stack Data Structure in simple ways</p><p>When we talk about stack, we often encounter it in our daily lives — whether it’s organizing a bunch of plates or managing chairs at a function one on top of another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*c7XSc1Yd-B9Eaq9BWM45Iw.avif" /><figcaption>“Stack of plates” by Julia Taubitz on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>In computer science, Stack is one of the simplest but powerful linear data structure which organizes data in a simple, ordered way. It follows <strong><em>LIFO</em></strong> (Last In First Out) principle, meaning that last element added would always be the first element removed. Consider a stack of plates where you add a new plate on top, and you always remove the topmost plate first.</p><p>Some of the common operations supported by Stack are:</p><ol><li><strong><em>Push</em></strong> - add an element to the top of stack</li><li><strong><em>Pop</em></strong> - remove the top element from the stack</li><li><strong><em>Top</em></strong> - returns the top element</li><li><strong><em>Empty</em></strong> - return true if stack is empty</li><li><strong><em>Size</em></strong> - returns size of the stack</li></ol><p>Stack can be implemented using arrays and linked lists. In this article we will see array based stack implementation.</p><p><strong><em>Let’s create an interface IStack having above stack operations:</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bfa7b69b4875fcc135d9189783b39601/href">https://medium.com/media/bfa7b69b4875fcc135d9189783b39601/href</a></iframe><p>Now, let’s implement the stack operations one by one.</p><ol><li><strong>Push</strong> operation adds an element on top of the stack</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d666ff6d4842e37180d9aad64f9e7bf9/href">https://medium.com/media/d666ff6d4842e37180d9aad64f9e7bf9/href</a></iframe><p>2. <strong>Pop</strong> operation removes an element from the top of the stack, it will return false if the stack is empty.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79f64b166abf547ca4f88bb35b3ba8b2/href">https://medium.com/media/79f64b166abf547ca4f88bb35b3ba8b2/href</a></iframe><p>3. <strong>Top</strong> operation returns the top element from the stack, it will return an error if the list is empty.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1369e30fe490174527f8294fdf0f4f3b/href">https://medium.com/media/1369e30fe490174527f8294fdf0f4f3b/href</a></iframe><p>4. <strong>Empty</strong> operation returns true if the stack is empty, otherwise false</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/46cf64e6981f5e21f5b47ea515986455/href">https://medium.com/media/46cf64e6981f5e21f5b47ea515986455/href</a></iframe><p>5. <strong>Size</strong> operation returns the number of elements in the stack</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ea7fce4e5a1f37064361e1222232969/href">https://medium.com/media/6ea7fce4e5a1f37064361e1222232969/href</a></iframe><blockquote><strong><em>Note: </em></strong>The provided basic code is for reference purposes only and may require special handling in certain cases.</blockquote><p>You can find the complete code <a href="https://github.com/ritz4u/Stack">here</a>.</p><p><strong><em>Conclusion:</em></strong></p><p>In this story, we’ve learnt some basic knowledge of stack like:</p><ul><li>A stack is a linear data structure, similar to arrays</li><li>The primary operations on a stack are <strong><em>push</em></strong> (adding an element to the top) and <strong><em>pop</em></strong> (removing an element from the top).</li><li>Real-world examples of stacks include <strong><em>undo-redo</em></strong> functionality in text editors, <strong><em>back and forward</em></strong> navigation in web browsers, and <strong><em>function calls</em></strong> in programming languages.</li></ul><p>That’s it from my side. Any suggestions &amp; corrections are highly welcomed.</p><p>Stay happy 😊 &amp; keep reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99ea1049146c" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/implementing-stack-data-structure-in-go-99ea1049146c">Implementing Stack data structure in Go</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deal With Doubly Linked List in Simple Ways]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/how-to-deal-with-doubly-linked-list-in-simple-ways-4d68a78b1d9b?source=rss-b4faebd1b529------2"><img src="https://cdn-images-1.medium.com/max/2600/1*5xJaBZnNS3eXd3FFzeKisg.jpeg" width="5760"></a></p><p class="medium-feed-snippet">Implementing doubly linked list in go</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/how-to-deal-with-doubly-linked-list-in-simple-ways-4d68a78b1d9b?source=rss-b4faebd1b529------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/how-to-deal-with-doubly-linked-list-in-simple-ways-4d68a78b1d9b?source=rss-b4faebd1b529------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d68a78b1d9b</guid>
            <category><![CDATA[linked-lists]]></category>
            <category><![CDATA[simple-steps]]></category>
            <category><![CDATA[useful-for-interviews]]></category>
            <category><![CDATA[real-world-example]]></category>
            <category><![CDATA[doubly-linked-list]]></category>
            <dc:creator><![CDATA[Ritesh Pawar]]></dc:creator>
            <pubDate>Fri, 14 Aug 2020 17:44:38 GMT</pubDate>
            <atom:updated>2025-10-06T12:06:07.436Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Go: Singly Linked Lists]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/go-singly-linked-lists-with-insertion-deletion-traversal-e9da5bb0dbe1?source=rss-b4faebd1b529------2"><img src="https://cdn-images-1.medium.com/max/747/1*zfLHbZ4AQoS8cYbgIhjpfg.jpeg" width="747"></a></p><p class="medium-feed-snippet">Singly linked list implementation in go lang</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/go-singly-linked-lists-with-insertion-deletion-traversal-e9da5bb0dbe1?source=rss-b4faebd1b529------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/go-singly-linked-lists-with-insertion-deletion-traversal-e9da5bb0dbe1?source=rss-b4faebd1b529------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9da5bb0dbe1</guid>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[singly-linked-list]]></category>
            <category><![CDATA[linked-lists]]></category>
            <category><![CDATA[lists]]></category>
            <dc:creator><![CDATA[Ritesh Pawar]]></dc:creator>
            <pubDate>Mon, 04 May 2020 17:03:35 GMT</pubDate>
            <atom:updated>2020-09-29T20:38:37.523Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[WMIC (Windows Management Interface Command) commands]]></title>
            <link>https://medium.com/@pawar.ritesh4u/get-your-hands-on-wmic-windows-management-interface-command-commands-89149787c362?source=rss-b4faebd1b529------2</link>
            <guid isPermaLink="false">https://medium.com/p/89149787c362</guid>
            <dc:creator><![CDATA[Ritesh Pawar]]></dc:creator>
            <pubDate>Sat, 04 Apr 2020 17:36:03 GMT</pubDate>
            <atom:updated>2020-04-23T14:32:29.687Z</atom:updated>
            <content:encoded><![CDATA[<p>You may have heard about WMIC while working with Windows operating system. If not, in this blog you will get to know about WMIC things that are required to work with windows management commands.</p><p>Open command prompt by using <strong>Search </strong>or <strong>Run </strong>option from start menu.</p><p>Type below command to get all the available options with WMIC:</p><blockquote>wmic /?</blockquote><figure><img alt="WMIC: all the available options" src="https://cdn-images-1.medium.com/max/677/1*fjgwcimOF7X4HMlXl9MBug.png" /><figcaption>Image 1: wmic available options</figcaption></figure><p>We will see some of the available options in this blog.</p><ol><li><strong><em>COMPUTERSYSTEM — Computer system management.</em></strong></li></ol><p>This global switch provides information about your computer system like DNSHostName, Domain, Manufacturer, Model, Name, NumberOfLogicalProcessors, UserName etc.</p><p>But, how will you know what are the details this global switch provides. Don’t worry, use below command to get the all available details under this switch.</p><blockquote>wmic COMPUTERSYSTEM</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*CkkE_jGGd8aEatb_X4EqRQ.png" /><figcaption>Image 2: Computer System global switch — get all available details</figcaption></figure><p>You can get specific details by querying as shown below:</p><blockquote>wmic COMPUTERSYSTEM get DNSHostName, Manufacturer, Model, NumberOfLogicalProcessors</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*vHJsnpo_-dAJIBbjCG8WPg.png" /><figcaption>Image 3: Computer System global switch — get specific details</figcaption></figure><p>2. <strong><em>CPU — CPU management</em></strong></p><p>Using this option you will get many details related to the system CPU like Manufacturer, MaxClockSpeed, Name, NumberOfCores, NumberOfLogicalProcessors, ProcessorId etc.</p><p>Use below command to get the all available details under this switch.</p><blockquote>wmic CPU</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*d0lKh_QH99hhAppaR-Qwcg.png" /><figcaption>Image 4: CPU global switch — get all available details</figcaption></figure><p>You can get specific details by querying as shown below:</p><blockquote>wmic CPU get Name, NumberOfCores, ProcessorId</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*cepPNUAdhLe4IxJ7mfpuhg.png" /><figcaption>Image 5: CPU global switch — get specific details</figcaption></figure><p>3. <strong><em>LOGICALDISK — Local storage device management</em></strong></p><p>You may find this option very useful if you are working with windows based logical disk drive management. This option provides many details like Caption, DriveType, FileSystem, FreeSpace, Size etc.</p><p>Use below command to get the all available details under this switch.</p><blockquote>wmic LOGICALDISK</blockquote><p>You can get specific details by querying as shown below:</p><blockquote>wmic LOGICALDISK get Caption, DriveType, FileSystem, FreeSpace, Size</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*3nwpUFfkTrg0MqVMuWRsDw.png" /><figcaption>Image 6: LOGICALDISK global switch — get specific details</figcaption></figure><p>Even you can query using the <strong>where</strong> clause, interesting right? See below:</p><blockquote>wmic LOGICALDISK where Caption=”C:” get Caption, DriveType, FileSystem, FreeSpace, Size</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*_X5LakFu8DVx4DnNCU_ZZQ.png" /><figcaption>Image 7: LOGICALDISK global switch — using WHERE clause</figcaption></figure><p>4. <strong><em>NIC — Network Interface Controller (NIC) management</em></strong></p><p>This global switch provides information about all the Network Interfaces available with the system. Let’s see how to get the information:</p><blockquote>wmic NIC</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*6OOM7cZtjLSsZLWmKObBqQ.png" /><figcaption>Image 8: NIC global switch — get all available details</figcaption></figure><p>You can get specific details by querying as shown below:</p><blockquote>wmic NIC get AdapterType, AdapterTypeId, MACAddress, NetEnabled</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*ia5J9jECsFbRARb_ROtr7Q.png" /><figcaption>Image 9: NIC global switch — get specific details</figcaption></figure><p>Observe the empty lines in the above image after the header line. This is because we are getting all the available details with the system where some information is not available with network interfaces.</p><p>Let’s use <strong>WHERE </strong>clause to get only valid data:</p><blockquote>wmic NIC where AdapterTypeId=0 get AdapterType, AdapterTypeId, MACAddress, NetEnabled</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*1T6xx-VX0ymrM4Vk9fK8Dg.png" /><figcaption>Image 10: NIC global switch —using WHERE clause</figcaption></figure><p>5. <strong><em>OS — Installed Operating System/s management</em></strong></p><p>You may find this global switch very useful in case you want details about the windows operating system like OSArchitecture, FreePhysicalMemory, InstallDate, Manufacturer, NumberOfLicensedUsers, NumberOfProcesses, NumberOfUsers, SerialNumber, SystemDrive etc.</p><p>Let’s get all the available attributes with this global switch:</p><blockquote>wmic OS</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*AeC1YL0J4e-jhtR_EcMjFg.png" /><figcaption>Image 11: OS global switch — get all available details</figcaption></figure><p>You can get specific details by querying as shown below:</p><blockquote>wmic OS get OSArchitecture,Manufacturer, NumberOfProcesses, NumberOfUsers, SystemDrive</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*rgT3Soz8fUJ1f_Z6rIFqhQ.png" /><figcaption>Image 12: OS global switch — get specific details</figcaption></figure><p>6. <strong><em>PROCESS — Process management</em></strong></p><p>You will get all the details about current running processes while using this global switch like CommandLine, ExecutablePath, Name, ParentProcessId, Priority, ProcessId etc.</p><p>Get all the available attributes using below command:</p><blockquote>wmic PROCESS</blockquote><p>Whereas get the specific details using below command:</p><blockquote>wmic PROCESS get Name, ParentProcessId, Priority, ProcessId</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*WteCHYj-LfNX3PLFIl9AQw.png" /><figcaption>Image 13: PROCESS global switch — get specific details</figcaption></figure><p>In fact you can terminate a specific process using where clause as shown below:</p><blockquote>wmic PROCESS where ProcessId=7100 call terminate</blockquote><p>Here, we are terminating a process which has ProcessId as <strong>7100</strong><em> (Process ID may be different in your case). See the output below:</em></p><p>If you don’t know the process ID, then you can also use process name to terminate the process.</p><blockquote>wmic PROCESS where name=”notepad.exe” call terminate</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*8Rgk8llTKzFb6PGZCvwFgg.png" /><figcaption>Image 13: PROCESS global switch — terminate specific process using WHERE clause</figcaption></figure><h4><strong>Note:</strong></h4><ol><li>All the above commands are used &amp; output is generated on Windows 7 Operating System. Using other windows platforms may result in different outputs.</li><li>WMIC execution may require some administrative privileges or elevation.</li></ol><h3><strong>Conclusion:</strong></h3><p>WMIC provides various commands over WMI to provide details regarding various global switches like Computer System, CPU, Logical Disk, Network Interfaces, Operating System etc. You can use <strong>WHERE </strong>clause to filter the results.</p><p>That’s it from my side. Any suggestions &amp; corrections are highly welcomed.</p><p>Stay happy 😊 &amp; keep reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89149787c362" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>