<?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 Varsha Thirumakil on Medium]]></title>
        <description><![CDATA[Stories by Varsha Thirumakil on Medium]]></description>
        <link>https://medium.com/@varsha0612?source=rss-325501aefacd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9kkMyfBeX3fQsPxz.jpg</url>
            <title>Stories by Varsha Thirumakil on Medium</title>
            <link>https://medium.com/@varsha0612?source=rss-325501aefacd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:12:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varsha0612/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[Models, Harnesses and Agents — A Michelin-Star Introduction]]></title>
            <link>https://medium.com/rain-coffee-and-contemplation/models-harnesses-and-agents-a-michelin-star-introduction-ca82148af2a3?source=rss-325501aefacd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca82148af2a3</guid>
            <dc:creator><![CDATA[Varsha Thirumakil]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 06:48:23 GMT</pubDate>
            <atom:updated>2026-12-02T07:01:03.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zK09Ef9KKIfCZMO_" /><figcaption>Photo by <a href="https://unsplash.com/@jorart295?utm_source=medium&amp;utm_medium=referral">Jorge Escobedo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When we talk about AI, we often use the terms <em>models</em> and <em>agents</em> interchangeably. But is Claude Opus an agent? Is Claude Code a model? What makes them different?</p><p>To understand how AI agents work, we first need to understand their building blocks and how they interact with each other.</p><p>Let’s explore these concepts with a little help from the world of Michelin-star restaurants.</p><h3>The Model: The Intelligence</h3><p>Think of chefs like <a href="https://www.gordonramsay.com/">Gordon Ramsay</a> and <a href="https://www.semma.nyc/">Vijay Kumar</a>. Each brings a different set of skills, knowledge and expertise to the table.</p><p>Similarly, in the AI world, we have different models:</p><ul><li>Claude Opus</li><li>Claude Sonnet</li><li>GPT</li><li>Grok</li></ul><p>Each model has different capabilities, strengths, limitations and costs.</p><p>Technically, a large language model (LLM) is a neural network whose parameters have been learned through training. It takes an input, processes it and generates an output.</p><p>Language models can run on remote infrastructure and be accessed through APIs, or run locally if you have sufficient computing resources.</p><p>For example, you could send a request to Claude Opus asking it to write a React component, and it could return the corresponding code.</p><p>But there’s an important distinction here. Generating the code is not the same as creating a file in your repository, installing dependencies or running tests.</p><p>Much like a chef who can describe a recipe without actually preparing the dish, a model can describe an action without executing it.</p><p>So how do we bridge that gap?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dl0f8sw03t1WPMhX4qA8RQ.png" /></figure><h3>The Environment: Where Things Happen</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F69VY-yrxbX8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D69VY-yrxbX8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F69VY-yrxbX8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/91a01285896734dd8a60e6dce6dfb887/href">https://medium.com/media/91a01285896734dd8a60e6dce6dfb887/href</a></iframe><p>If you watched the video above, you’ll notice that running a restaurant like Semma involves much more than the expertise of its chef. There’s a kitchen, a pantry, ingredients, equipment and people working together.</p><p>In the AI world, we call the world an agent operates in its <strong>environment</strong>.</p><p>For a coding agent, this could include:</p><ul><li>Your local file system</li><li>Your application’s source code</li><li>Installed dependencies</li><li>The terminal and runtime environment</li><li>Git repositories</li></ul><p>For a general-purpose AI assistant, the environment could include documents, external applications and the web.</p><p>But simply having an environment doesn’t mean the model can interact with it. We need something that enables that interaction.</p><h3>The Harness: Connecting Intelligence to the Environment</h3><p>The harness is the software layer that connects a model to its environment.</p><p>Going back to our React component example, the model can generate the code, but the harness provides the mechanisms to actually create a file, modify existing code and run tests.</p><p>Let’s say you ask Claude Code to create a React button component.</p><p>Rather than simply returning the generated code, the model can request a tool call to create a file. The harness executes that operation and passes the result back to the model.</p><p><strong>What does a tool call actually look like?</strong></p><p>For example, if the model needs to create a directory for our React component, it could generate a structured tool call like this:</p><pre>{<br>  &quot;tool&quot;: &quot;bash&quot;,<br>  &quot;arguments&quot;: {<br>    &quot;command&quot;: &quot;mkdir -p src/components&quot;<br>  }<br>}</pre><p>This is a simplified representation of a tool call.</p><p>The harness receives this request, checks permissions, executes the command in the environment and returns the execution result to the model.</p><p>The model can then use that information to determine what to do next.</p><p>The harness is also responsible for things like managing context, providing tools, enforcing permissions and coordinating this interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHzZUKRzra7mWCMQZ5artA.png" /></figure><h3>The Agent: Putting It All Together</h3><p>Now that we understand the model, the harness and the environment, what exactly is an agent?</p><p>An AI agent is a system that uses a model, through a harness, to interact with an environment and work towards a goal.</p><p>An agent can repeat this cycle of requesting actions, observing results and deciding what to do next until it achieves its goal or reaches a stopping condition.</p><p>This brings us back to our original question: what is the difference between Claude Opus and Claude Code?</p><p>Claude Opus is a model. Claude Code is an agentic coding application that provides the harness through which a model can interact with your development environment.</p><p>The model provides the intelligence. The harness enables action. The environment is where those actions take place.</p><h3><strong>Does hiring a Michelin-starred chef automatically make your restaurant better?</strong></h3><p>Not necessarily. Your equipment, ingredients, organization and processes matter too.</p><p>Similarly, improving an AI agent isn’t always about upgrading to a more powerful model. You can improve its tools, context management, feedback loops and the environment it operates in.</p><p>This article was inspired by AI Hero and Todd Hoff’s approach to explaining technical concepts in <a href="https://highscalability.com/explain-the-cloud-like-im-10/?utm_source=chatgpt.com">Explain the Cloud Like I’m 10</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca82148af2a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rain-coffee-and-contemplation/models-harnesses-and-agents-a-michelin-star-introduction-ca82148af2a3">Models, Harnesses and Agents — A Michelin-Star Introduction</a> was originally published in <a href="https://medium.com/rain-coffee-and-contemplation">Coffee and Contemplation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript Closures — It’s a fun backpacking :)]]></title>
            <link>https://medium.com/rain-coffee-and-contemplation/javascript-closures-its-a-fun-backpacking-ba35ce5822ed?source=rss-325501aefacd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba35ce5822ed</guid>
            <dc:creator><![CDATA[Varsha Thirumakil]]></dc:creator>
            <pubDate>Fri, 21 Jul 2023 21:52:19 GMT</pubDate>
            <atom:updated>2023-07-21T21:52:19.616Z</atom:updated>
            <content:encoded><![CDATA[<h3>Javascript Closures — It’s a fun backpacking :)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xY4ICnW0-FCupcHf" /><figcaption>Photo by <a href="https://unsplash.com/@jsweissphoto?utm_source=medium&amp;utm_medium=referral">Josiah Weiss</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://frontendmasters.com/courses/javascript-hard-parts-v2/">https://frontendmasters.com/courses/javascript-hard-parts-v2/</a> — <em>Thanks to Will Sentance for the amazing JS Hard Part Series.</em></p><h3>Javascript Closures explained with Hiking Analogies</h3><ol><li>Starting the program is like entering the hiking trail <strong>(Global Execution Context).</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_1HsH-gZOnozur2_" /><figcaption>Photo by <a href="https://unsplash.com/@chiro?utm_source=medium&amp;utm_medium=referral">photo nic</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>2. Going through the code line by line is similar to following trail markers on your hike <strong>(Thread of Execution).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jmXvhncimB4T1x4X" /><figcaption>Photo by <a href="https://unsplash.com/@zrk?utm_source=medium&amp;utm_medium=referral">Zack Kiesewetter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>3. Variables/constants/functions declared in the global execution context are like the plants and mushrooms you see along the trail <strong>(Global Variables that lives in the global memory).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5gqpboL5Hbpda1IM" /><figcaption>Photo by <a href="https://unsplash.com/@aaryapaar?utm_source=medium&amp;utm_medium=referral">Vinit Srivastava</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>4. Function calls can be seen as detours or side trails off the main trail <strong>(Local Execution Context).</strong></p><p>Inside these detours <strong>(function calls),</strong> you might declare more variables/functions <strong>(local variables)</strong></p><p>which can be thought <strong>of as taking photos, picking up more snacks from the stores on the way etc.</strong></p><blockquote>I know there wont be snack stores but lets assume we got lucky and found a food truck that sells snacks for avid hikers <em>😆</em></blockquote><p>5. Just like in your hiking scenario, you have a backpack <strong>(Closure)</strong> where you store your snacks or photos <strong>(local variables).</strong></p><p>You take this backpack along every detour (function call). Every time you return from a detour (when the function finishes execution), you come back to the main trail (global execution context).</p><p>But, you still have your backpack (closure) with you, filled with the snacks and photos (local variables) from every detour (function call).</p><p>6. Even after your hiking trip (program) is over, you still have your backpack (closure) full of the snacks and pictures (local variables).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kT0duOmbJ4MVEdb6D0q6bQ.png" /><figcaption>Code example</figcaption></figure><p>This lets you reflect on the trip and enjoy your collected items (access closed-over variables) after the hike (program) has completed.</p><p><strong><em>So, indeed, the magic of closures is like being able to enjoy the memories and rewards of a great hike, long after the hike itself is over.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ml4HERg86LphORcU" /><figcaption>Photo by <a href="https://unsplash.com/@sebastiengoldberg?utm_source=medium&amp;utm_medium=referral">Sébastien Goldberg</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Checkout <a href="http://csbin.io/closures">http://csbin.io/closures</a> for practice problems.</p><p>Happy coding ❤ and happy hiking ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba35ce5822ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rain-coffee-and-contemplation/javascript-closures-its-a-fun-backpacking-ba35ce5822ed">Javascript Closures — It’s a fun backpacking :)</a> was originally published in <a href="https://medium.com/rain-coffee-and-contemplation">Coffee and Contemplation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Hidden Gem Javascript Resources on Closures, Promises and more — gives you an aha moment]]></title>
            <link>https://medium.com/rain-coffee-and-contemplation/3-hidden-gem-javascript-resources-on-closures-promises-and-more-gives-you-an-aha-moment-fdbcb680cec6?source=rss-325501aefacd------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdbcb680cec6</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Varsha Thirumakil]]></dc:creator>
            <pubDate>Thu, 23 Mar 2023 12:47:29 GMT</pubDate>
            <atom:updated>2023-07-24T13:34:20.486Z</atom:updated>
            <content:encoded><![CDATA[<h3>3 Hidden Gem Javascript Resources on Closures, Promises and more — gives you an aha moment</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kqzCisOXjqCN8wLE" /><figcaption>Photo by <a href="https://unsplash.com/@freegraphictoday?utm_source=medium&amp;utm_medium=referral">AbsolutVision</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li><a href="https://dev.to/lydiahallie/javascript-visualized-promises-async-await-5gke">⭐️🎀 JavaScript Visualized: Promises &amp; Async/Await</a></li><li><a href="https://frontendmasters.com/courses/javascript-hard-parts-v2/">Learning the Hard Parts of JS</a></li><li><a href="https://frontendmasters.com/courses/interviewing-frontend/">Learn to Pass Front-end Interviews | Recruiter Prescreen Questions</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdbcb680cec6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rain-coffee-and-contemplation/3-hidden-gem-javascript-resources-on-closures-promises-and-more-gives-you-an-aha-moment-fdbcb680cec6">3 Hidden Gem Javascript Resources on Closures, Promises and more — gives you an aha moment</a> was originally published in <a href="https://medium.com/rain-coffee-and-contemplation">Coffee and Contemplation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Asynchronous Javascript Basics— Part 1]]></title>
            <link>https://medium.com/rain-coffee-and-contemplation/asynchronous-javascript-basics-part-1-f95c05aab16?source=rss-325501aefacd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f95c05aab16</guid>
            <category><![CDATA[asynchronous-javascript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[settimeout]]></category>
            <dc:creator><![CDATA[Varsha Thirumakil]]></dc:creator>
            <pubDate>Sun, 20 Nov 2022 03:54:16 GMT</pubDate>
            <atom:updated>2022-11-20T03:56:03.480Z</atom:updated>
            <content:encoded><![CDATA[<h4>Thanks to Will Sentance for the amazing <a href="https://frontendmasters.com/courses/javascript-hard-parts-v2/">JS Hard Part Series.</a></h4><p>Javascript is single threaded and executes one line of code at a time.</p><p>Yet how do we accomplish things like selecting multiple slack emojis without waiting for the confirmation from the server ???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*ojG_P9FcUbN8ReGUh8I2YQ.png" /><figcaption>slack emojis ❤ ❤</figcaption></figure><blockquote><strong>Asynchronicity is the backbone of modern web development in Javascript</strong></blockquote><p>Core JS engine has 3 main parts:</p><ul><li>Thread of execution</li><li>Memory/variable environment</li><li>Call Stack</li></ul><p>We need to add some new components to achieve how we can accomplish asynchronicity:</p><ul><li>Web Browser APIs/Node background APIs</li><li>Promises</li><li>Event Loop, Callback/Task Queue and Micro Task Queue</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*tRULxio18ItbMjb2y7Zjqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*ISk0MreNorVort-7VPm3gg.png" /><figcaption>Browser and JS</figcaption></figure><p><strong>Browser features and their JS labels look like this:</strong></p><p>HTMLDOM — document</p><p><strong>Timer — setTimeout()</strong></p><p>Network Requests — fetch()</p><p>Developer Tools — console.log(“hello world”)</p><h4><strong>Now lets look at some examples to understand how setTimeout() works:</strong></h4><p>ES5 solution: Introducing callback functions and Web Browser APIs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ow5etJi35hUMgqfRV_0Nuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kz4BarIznqGg6-a8fI4IAw.png" /><figcaption>Flow</figcaption></figure><p>Line 1: We define function printHello</p><p>Line 5: We define function blockFor1Sec</p><p>Line 10: setTimeout(printHello, 0) has a consequence in the Web Browser.</p><p>When the Timer finishes, printHello enters the <strong>Callback Queue and is waiting…. to be auto run.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FtdTqSnUAE4h_7CP" /><figcaption>Photo by <a href="https://unsplash.com/@levimeirclancy?utm_source=medium&amp;utm_medium=referral">Levi Meir Clancy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Line 11: blockFor1Sec() enters the <strong>Call Stack. </strong>Pops out of the call stack after execution.</p><p><strong>This line logs Hello World!! in our console (1001 times as we have a for loop)</strong></p><p>Line 12: This line logs Me first! in the console.</p><p>Finally <strong><em>printHello is grabbed from the Callback Queue and enters the Call Stack to be run.</em></strong></p><p>and Hello is logged to the console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OaHW2--o9WFoaGlZE0rC1Q.png" /><figcaption>Code output</figcaption></figure><blockquote>Callback queue would never dequeue printHello and put into call stack even if you have 1 million console.logs inside the blockFor1Sec() function.</blockquote><p>But you may be wondering, how Javascript implements this?? 🤔 🤔 This is done via Event Loop.</p><h3>Event Loop</h3><p>Event Loop is responsible for checking</p><ul><li>if all the global code runs</li><li>if call stack is empty</li></ul><p>before dequeuing anything from the callback queue.</p><p>Stay tuned for the part 2 of the blog post for all about ES6+</p><p>Thanks for reading &amp; Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f95c05aab16" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rain-coffee-and-contemplation/asynchronous-javascript-basics-part-1-f95c05aab16">Asynchronous Javascript Basics— Part 1</a> was originally published in <a href="https://medium.com/rain-coffee-and-contemplation">Coffee and Contemplation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recursion basics using Euclid’s algorithm for computing GCD]]></title>
            <link>https://medium.com/rain-coffee-and-contemplation/recursion-basics-using-euclids-algorithm-for-computing-gcd-732500fe1c99?source=rss-325501aefacd------2</link>
            <guid isPermaLink="false">https://medium.com/p/732500fe1c99</guid>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[recursion]]></category>
            <category><![CDATA[pycharm]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Varsha Thirumakil]]></dc:creator>
            <pubDate>Fri, 02 Aug 2019 13:16:17 GMT</pubDate>
            <atom:updated>2019-08-02T13:16:17.356Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I am going to dive into the step by step debugging approach of a simple recursive algorithm.</p><h3><strong><em>What is Recursion?</em></strong></h3><blockquote><strong>Recursion:</strong> Divide a problem into sub-problems of the same type as the original, solve those sub-problems, and combine the results.</blockquote><blockquote>Recursive Function: A function that calls itself is called a recursive function</blockquote><h3>What is Euclid&#39;s algorithm?</h3><p>Greatest Common Divisor (GCD) of two integers A and B is the <strong>largest integer that divides both A and B</strong>. The <strong>Euclidean Algorithm</strong> is a technique for quickly finding the <strong>GCD</strong> of two integers.</p><p>In simple words, the Euclidean Algorithm is an n-step iterative process that ends when a reminder is zero. In each step, the modulo operation is performed to get the reminder.</p><p>Step1 — <strong>gcd(126, 93)</strong>- 126 % 93 = 33</p><p>Step2 — <strong>gcd(93, 33)</strong>- 93 % 33 = 27</p><p>Step3 — <strong>gcd(33, 27)</strong>- 33%27 = 6</p><p>Step4 — <strong>gcd(27, 6)</strong>- 27%6 = 3</p><p>Step5— <strong>gcd(6, 3)</strong>- 6%3 = 0</p><p>Step6 — <strong>gcd(3, 0)- we reached the base case</strong></p><p><strong><em>GCD of 126, 93 is 3</em></strong></p><h3>Let us debug Euclids algorithm using Pycharm to understand how recursion works:</h3><p><strong>Step-0 (optional, I personally find it super helpful)</strong></p><p>Download Pycharm — <a href="https://www.jetbrains.com/pycharm/download/">https://www.jetbrains.com/pycharm/download/</a></p><p><strong>Step-1</strong></p><p>In the image below, line 7 calls the gcd function with 126 and 93</p><p><strong>gcd(126, 93) -&gt; </strong>126 % 93 =33</p><p>Line 5 calls gcd function, it is paused and begins the recursion process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KhFniSKMYXpJ-VJiyxaVhA.png" /></figure><p><strong>Step-2</strong></p><p><strong>gcd(93, 33) -&gt; </strong>93 % 33 = 27</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PIO3d41SlrHgyCgX6OqqAQ.png" /></figure><p><strong>Step-3</strong></p><p><strong>gcd(33, 27) -&gt; </strong>33%27 = 6</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h3ti9wNvjxNOFiQH0eQF6w.png" /></figure><p><strong>Step-4</strong></p><p><strong>gcd(27, 6) -&gt; </strong>27%6 = 3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9LCURBGCauryoNckEfg40A.png" /></figure><p><strong>Step-5</strong></p><p><strong>gcd(6, 3) -&gt; </strong>6%3 = 0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUaz9gq6G6e9Qs7F9I5FXw.png" /></figure><p><strong>Step-6</strong></p><p>Now we reached the base case and return the result to the most recent recursive call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RCP3Bcs-LzMFdj7lkBflzw.png" /></figure><p>If you look into the above image’s left bottom section, we have the call stack that illustrates how the paused recursive calls are stacked.</p><p>Once we hit the base case, the return value is given to the paused function calls and finally, the result is returned to line 7 which is the calling function.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=732500fe1c99" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rain-coffee-and-contemplation/recursion-basics-using-euclids-algorithm-for-computing-gcd-732500fe1c99">Recursion basics using Euclid’s algorithm for computing GCD</a> was originally published in <a href="https://medium.com/rain-coffee-and-contemplation">Coffee and Contemplation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>