<?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 Jyotsna Rajaraman on Medium]]></title>
        <description><![CDATA[Stories by Jyotsna Rajaraman on Medium]]></description>
        <link>https://medium.com/@jyorajaraman?source=rss-e27bc11288e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PIsJQ-iP4wF-qWWt_HTI9w.jpeg</url>
            <title>Stories by Jyotsna Rajaraman on Medium</title>
            <link>https://medium.com/@jyorajaraman?source=rss-e27bc11288e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 04:57:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jyorajaraman/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[Building a GitHub account x 100 days of code: Days 22–31]]></title>
            <link>https://towardsdev.com/building-a-github-account-x-100-days-of-code-days-22-31-8e4a407f1b61?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e4a407f1b61</guid>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[computers]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[nand2tetris]]></category>
            <category><![CDATA[systems-engineering]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Mon, 13 Mar 2023 21:29:57 GMT</pubDate>
            <atom:updated>2023-03-27T20:36:16.835Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>This Week’s Goal: Understanding Systems — from the logic gates to operating systems (big dreams start small)</strong></p><p>As a computer science grad student, I am often introduced to some great internet resources that can accelerate my learning process in ways I . could not have imagined before hearing about them. And my latest learning project has been a broad (yet, somehow involved and in-depth) comprehensive overview of the entire Computer System.</p><p>Building a computer system from the ground up might seem impossible and a little impractical, given the amount of time it could require. But the <a href="https://www.nand2tetris.org/">Nand2Tetris project</a> proves that anyone can do it (literally anyone) without any fluff, fancy equipment, or months on end of free time. This project is a learn-as-you-go practical implementation that helps you design and build a modern computer system from the most fundamental building block of digital logic, the Nand gate.</p><p>If you had told me that I would begin with just a Nand gate and build a 16-bit computer with ease (and some struggle, but not as much as I anticipated) — I’d have been in disbelief and honestly a little confused as to why a Nand gate. And while I still cannot claim to be an expert on the subject, I understand that Nand logic can be extended to pretty much all other logic gates in existence through a clever combination and what it takes to put several different such logical units together to build parts of a computer like the ALU, Memory and all the things that you need to operate and use the computer (or phone) in front of you.</p><p>The Nand2Tetris project not only gave me the satisfaction of building something from the ground up but also guided me through comprehending how each part works together, from the basic blocks to complex concepts like the compiler and operating system.</p><figure><img alt="Roadmap for thinking about Computer Systems with its various components" src="https://cdn-images-1.medium.com/max/672/1*3HfqgT9r1c3ArN-E2Xy_Vw.png" /><figcaption>Roadmap for thinking about Computer Systems</figcaption></figure><p>Here’s a breakdown of the things I learned during my Nand2Tetris journey:</p><p><em>Building hardware components of a computer system</em></p><p>This included complex parts like the CPU, memory, and input/output units by breaking each significant component into smaller, easily understandable pieces, analyzing the logic, and building it from the ground up.</p><p>As a developer, you may not <em>need </em>to take a deeper dive into the world of hardware; however, this knowledge is crucial because it helps you better understand how the software you work on every day interacts with the hardware. This will help identify and fix issues and develop design solutions that utilize the hardware’s capabilities.</p><p><em>Writing software for the specific hardware design</em></p><p>This process was also fascinating since it allowed me to flex my coding skills (which have been slowly growing) to create parts of computers like assemblers, compilers, and operating systems. In my software experience, I have coded mainly in high-level programming languages; as we all know, my favorite is Python. However, this project forced me to understand the nitty-gritty of how the gap between high-level programming languages and the low-level hardware components of a computer system is bridged and how they communicate. And as my Systems professor was quick to point out, “all a computer does is computing,” and at its most basic level — that is all it is capable of doing. This was initially counter-intuitive because surely a computer that can access the internet, store my documents, and search for my insistent queries could do more than just <em>computing. </em>Turns out it can’t, but computing is surprisingly complex and capable!</p><p>While the concept of computers only understanding low-level instructions in machine language is well known, the process of creating portable software across hardware platforms is less public. In addition, well-designed software components can optimize hardware resources and improve overall performance. But most notably, realizing the various parts and the difference in the high-level programming languages that we use, at least for me, created an awareness and appreciation of the ease with which we can code and how I can code better.</p><p>In conclusion, the fundamentals that the Nand2teris project taught me have deepened my understanding of how computers work, from basic computations to more complex problems. So whether you are a baby programmer, just getting your feet wet in the vast world of technology, or a professional with several years of experience to your name, I would encourage you to take at least a quick look at the Nand2Tetris project and learn just a little more about the technology that has become an irreplaceable part of our everyday!</p><figure><img alt="Screenshot of my github profile with the code for the nand2tetris project" src="https://cdn-images-1.medium.com/max/1024/1*nZANBWnFadEPmc1F53A5tg.png" /><figcaption>Nand2tetris starter code</figcaption></figure><p>For some code snippets — check out my <a href="https://github.com/JyotsnaRajaraman/100days/tree/main/ComputerSystems%20-%20Nand2Tetris">GitHub</a>, which for the benefit of those trying to learn and code this project from scratch themselves, does not have all the code, but enough to get you thinking and started!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e4a407f1b61" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/building-a-github-account-x-100-days-of-code-days-22-31-8e4a407f1b61">Building a GitHub account x 100 days of code: Days 22–31</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitHub account x 100 days of code: Days 15–21]]></title>
            <link>https://towardsdev.com/building-a-github-account-x-100-days-of-code-days-15-21-cb6351745386?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb6351745386</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[ui-ux]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[psychology]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Sat, 04 Mar 2023 02:09:37 GMT</pubDate>
            <atom:updated>2023-03-06T19:31:09.107Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>This Week’s Goal: Understanding and implementing good design</strong></p><p>“100 Things Every Designer Needs to Know About People” by Susan Weinschenk is a comprehensive guidebook for designers or anyone looking to understand human behavior and psychology. <em>Why for designers? </em>Because reading through and imbibing how we think, feel, and act allows anyone hoping to create something of value to improve it. Here are a few things I learned from reading and analyzing the book over the past week. I also used some concepts for my design project, linked at the end of the article!</p><p>Susan Weinschenk, the author of this incredible book, uses her background in psychology to package complex concepts, such as the way our brains process information, the role of emotion in decision-making, and the impact of social influence on behavior into easily digestible titbits that you can start to use almost immediately.</p><p>For each concept Susan points out, she cites a real-world example of its application and consistently builds on the previous chapters to create an excellent flow throughout the book.</p><p>Over the last week, I also worked on a design project for a stress-management application for University Students, for which I used Figma to design the layout. This project was a great way to think about the design choices and the various concepts and features I would have to include to create a viable application as a developer. I began reading this book simultaneously and used what I read to approach my project. Some parts of the book stood out, and I tried to implement them in my design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4CyDBqtHrE_EjD2P7QB5jQ.png" /><figcaption>Walkthrough for my application</figcaption></figure><p>Susan states, “<em>People make decisions based on emotions first, and then rationalize those decisions with logic” (A</em>ffect heuristic). Considering this helps us understand why and how people often make irrational decisions that may seem illogical. Appealing to your users from an emotional POV is just as important as the logical or utility-based approach that naive designers may choose to think about first. It is crucial to engage your users on a visceral front.</p><p>Another concept to consider while designing anything is that <em>“People remember best what they see first and last.” </em>(Serial position effect). Whether you are a designer or just working on a presentation for a class or at work, putting critical information at the beginning or end will ensure it best reaches your audience.</p><p>But the main takeaway for me, given that my design was for a stress management application, was understanding and tending to the cognitive load of my overall flow. You may ask what cognitive flow means, and honestly, until last week, I would have too! Cognitive load is the mental effort required to complete a task, which good design achieves by using familiar patterns, minimizing distractions, and furnishing clear instructions. Since reading this, I have noticed that the apps I eventually stop using require me to go through too many steps to get where I want or have an elaborate number of features, leaving me overwhelmed and honestly entirely disinterested.</p><p>So taking the concept of cognitive load and Susan’s words, <em>“A call to action is a statement that tells the user what to do next. A clear and specific call to action can increase the likelihood that users will take the desired action.” </em>into account I tried to maintain a straightforward, user-friendly design that could cater to my users in any mood/situation.</p><p>If you’ve got this far — here are some quick tips in case you don’t want to read the entire book to start thinking this way.</p><ol><li><strong>Understand your target audience. </strong>Effective solutions are directly related to how well you understand <em>who </em>the design is for.</li><li><strong>Contrast and visual hierarchy are your friends.</strong> Use the way our brains are wired to guide your users through the flow of your app; the more self-sufficient you make the learning process, the more significant retention you’ll see.</li><li><strong>Use the emotional part of our brain</strong>. Appealing to your users’ emotional outlook in your design can have long-term benefits.</li><li><strong>Simplify the process.</strong> Use clear, straightforward language and minimize the number of decisions your users must make.</li><li><strong>Leverage social proof</strong>. Peer pressure and influence are no joke. If others say so, people will find your product far more reliable, so find a way to show them popularity statistics, ratings, or reviews.</li><li><strong>Colors matter</strong>. Take some time to consider the effect of your color choices on the human brain. We are wired to respond in specific ways based on our context and setting.</li></ol><p><strong>Test, Iterate, Repeat</strong>. No one can improve your design like your users can — so when possible, try to test with real users and take their feedback seriously.</p><p>The prototype design for my stress-management application is linked <a href="https://bit.ly/41MXOQH">here</a>. Feel free to give me feedback!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlu4Oh3M2RjtSv4DrtZbJA.png" /><figcaption>Some screens from my design projects</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb6351745386" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/building-a-github-account-x-100-days-of-code-days-15-21-cb6351745386">Building a GitHub account x 100 days of code: Days 15–21</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitHub account x 100 days of code: Day 15]]></title>
            <link>https://jyorajaraman.medium.com/building-a-github-account-x-100-days-of-code-day-15-dbc3be29b5f1?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbc3be29b5f1</guid>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[data-structure-algorithm]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 05:39:33 GMT</pubDate>
            <atom:updated>2023-02-26T05:39:33.675Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Today’s Goal: Reflect on the DSA journey, and think about a new undertaking</strong></p><p>Well well well, 2 weeks of Data Structures, Algorithms and I’ve barely scratched the surface of what Python has to offer. But here’s the tea — baby steps make all the difference.</p><p>How do I know? Remember when Python wasn’t even on the list of languages on my GitHub account 2 days ago — it is now the third on my list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*EWB-VW1YMVVs_YlQqk37tg.png" /><figcaption>Current language split on my GitHub</figcaption></figure><p>Is ~13% a huge number, not really — BUT in 14 days, I am very proud of myself!</p><p>Here’s something else that I have picked up while dabbling in the realm of DSA — <strong>consistency is key. </strong>So whether you think you have time for it or not, once you remove the <em>optional </em>clause<em> </em>from anything you’d like to do, you end up doing it way more than you originally would have. So set a goal and even on days that seem like you could slack off, keep at it. No one can motivate you like yourself.</p><p>Understanding data structures is an important component of algorithm design and to do your best work, you need to understand the tools you are working with. This is why, when you learn any new language, it’s always a good idea to start from its building blocks.</p><p>How you approach this learning is unique to your perspective and purpose, but if you are looking for ideas — Neetcode is a great place to start. The roadmap categorizes top Leetcode problems and takes you seamlessly from simple to complex concepts and questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RKt9Rxp3D8aZo_7KmThqXw.png" /><figcaption>Neetcode roadmap progress</figcaption></figure><p>Over the last 2 weeks I solved 50 problems and what was great about it was I could track my progress and for the purpose of this documentation, know in advance what umbrella concept I could cover next.</p><p>What is next? Now that I have deep-dived into the practice of Data Structures and algorithms, I want to understand and implement the practices of good design.</p><p>The point of this challenge is to come out the other end equipped to take on any and all programming challenges, so I will be reading <strong>“100 Things Every Designer Needs to Know About People”. </strong>Written by Susan Weinschenk, a behavioral scientist the book is a guide on how to design intuitive and engaging software that takes into account the way people think and behave.</p><p>In my opinion, forming a strong understanding of how certain design/feature choices can affect users is important before jumping into any development. So over the next week or so, I will be reading and discussing Susan’s take on good design and my thoughts about the same.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbc3be29b5f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitHub account x 100 days of code: Day 14]]></title>
            <link>https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-14-3ced9766d21c?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ced9766d21c</guid>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[greedy-algorithms]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Sat, 25 Feb 2023 15:41:57 GMT</pubDate>
            <atom:updated>2023-02-27T16:09:44.748Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Today’s Goal: Greedy Algorithms</strong></p><p>Greedy algorithms are pretty much what they sound like (not like me when I’m too hungry), but approach problem-solving by making the best choice at each step of the algorithm.</p><p>What is a <strong>greedy algorithm</strong>? It is an approach to any problem through picking a solution that is locally optimal at each stage in order to find the global optimal solution.</p><p>This may seem to be a little counterintuitive, for instance, if you were trying to find the shortest path between two points. Your greedy algorithm would try to find the shortest path at each point, which may unfortunately lead to a dead end. You’d then have to backtrack to a different path and try again — which sounds like a big waste of time.</p><p>To put it simply, a greedy algorithm operates by selecting the best option at each stage of the algorithm without taking into account the potential outcomes or implications in the future.</p><p>It also happens that greedy algorithms don’t always lead to the best outcome. It could occasionally result in a non-optimal or inaccurate answer, since it tries to pick the best solution at every step, rather than analyzing to see where the best solution actually is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IMBrbUMv_TmSAxbyQSM4nA.png" /><figcaption>Greedy algorithm problems</figcaption></figure><p>Although so far it seems that greedy algorithms aren’t the most useful, they are actually quite useful in many situations. Despite their drawbacks, greedy algorithms are still incredibly effective and simple to use. They are helpful for tackling optimization issues where an approximation will do and an exact solution is not required. Also, they are frequently used as a foundation for more advanced techniques, including dynamic programming.</p><p>Using greedy algorithms is one of the fastest ways to come up with a working solution to most optimization problems and should be one of the first options you consider when you first jump into writing a solution for your problems.</p><p>Tomorrow will be the last of my Neetcode journey — a pat on the back and a big sigh of relief for reaching this point. Phew!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ced9766d21c" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-14-3ced9766d21c">Building a GitHub account x 100 days of code: Day 14</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitHub account x 100 days of code: Day 13]]></title>
            <link>https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-13-433359681b73?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/433359681b73</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Fri, 24 Feb 2023 05:48:00 GMT</pubDate>
            <atom:updated>2023-02-27T16:09:35.267Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Today’s Goal: Interval Problems</strong></p><p>Interval-based problems are not generally a category of themselves, mainly because they are based on logical analysis and array manipulation and hence fall into that category. However categorizing them this way allows us to develop a deeper understanding of array data structures, which in Python are particularly interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mn0jmdCxLMT5tuXd4KY3jg.png" /><figcaption>Interval Problems</figcaption></figure><p>Here’s a checklist that you should go through, regardless of your Python expertise to check your knowledge of Python arrays. And while some of these may be obvious/intuitive, it is important to remember them in manipulating data using arrays.</p><ol><li><strong>Python arrays are different from lists</strong>: Although both essentially store collections of data, they aren’t classified as the same in Python. In fact, arrays are more memory and time efficient.</li><li><strong>Arrays can only store elements of the same data type</strong>: While lists can store data of multiple types, arrays can only store elements of the same data type.</li><li><strong>Arrays are mutable</strong>: This means that the data in the arrays can be changed after creation.</li><li><strong>The array module creates the arrays</strong>: In Python, the array module is what is used to create arrays whether or not you realize it while coding.</li><li><strong>Arrays are created for a fixed size</strong>: Although dynamic on the user end, in the background Python allocates a specific amount of memory for any instantiated array, and if and when you fill it — it creates a new array with a larger size and moves the data.</li><li><strong>You can slice arrays</strong>: An interesting feature of Python arrays is slicing in order to access a portion of its data.</li></ol><p>Although I am no stranger to Python arrays, the more I work with them the more I learn. They are efficient and flexible, and by leveraging the power of arrays, almost any problem becomes easier to solve.</p><p>Tomorrow is the last-but-one day of this Neetcode challenge and I will be solving problems that involve greedy algorithms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=433359681b73" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-13-433359681b73">Building a GitHub account x 100 days of code: Day 13</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitHub account x 100 days of code: Day 12]]></title>
            <link>https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-12-7e9d02076a1d?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e9d02076a1d</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[bit-manipulation]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[binary]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Thu, 23 Feb 2023 07:00:33 GMT</pubDate>
            <atom:updated>2023-02-27T16:09:40.318Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Today’s Goal: Bit Manipulation</strong></p><p>Solving problems with bit manipulation, sounds and looks just as cool. Not only is it efficient time and space-wise, but it can also be incredibly concise for problems that would need more code in decimal form.</p><p>Bitwise manipulation allows you to use the very basic components of any code — 1s and 0s. <strong>What are bits? </strong>They actually mean <em>binary digit, </em>which is the basis for all other data, from numbers to large-scale applications on any computer. When you break down any information, bits are the smallest possible element. Even in a high-level language like Python, paying attention to what basic bitwise operations can do may be a game changer in how you write simple code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lLw-RyBn7CNs3ogfe18Ltg.png" /><figcaption>Bit Manipulation problems</figcaption></figure><p>The binary system is not very different conceptually from the number system we use in our regular life, which is called the decimal system. The base of the binary system is 2, which means that each digit represents a power of 2.</p><p>You may actually be using operators like | (or), &amp; (and), ^ (xor), ~ (not) in your code already — not realizing that these fall under the category of bitwise operators. These operators are classified as binary or unary depending on the number of arguments they require. But boring theory aside, think about how these operations can be used to choose or exclude certain numbers, for example in a list.</p><p>Something interesting to note, particularly in Python, is when using bitwise operators you need to remember that they are evaluated eagerly. This means that when two conditions are separated by Or, the second is evaluated even though only one is enough to satisfy the requirement. This may come as a surprise to you if you are used to the lazily evaluated logical operations in Python.</p><p>Understanding how to leverage the parallel running and elimination of loops through bit manipulation codes could have you running extremely time-efficient code. However, something to keep in mind is the possibility of ending up with overly complex code with bitwise manipulation is not needed. Rather than using it at any given opportunity, save this concept in your programming toolkit for when it is absolutely needed!</p><p>Tomorrow interval problems as I edge closer to the finishing line of the first part of my challenge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e9d02076a1d" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-12-7e9d02076a1d">Building a GitHub account x 100 days of code: Day 12</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitHub account x 100 days of code: Day 11]]></title>
            <link>https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-11-9de7f4dcf615?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9de7f4dcf615</guid>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[dynamic-programming]]></category>
            <category><![CDATA[big-o-notation]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Wed, 22 Feb 2023 05:27:29 GMT</pubDate>
            <atom:updated>2023-02-22T13:15:02.734Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Today’s Goal: Dynamic Programming (2-D)</strong></p><p>More with dynamic programming today, which is a set of problems that could potentially go on for several more days, but in lieu of time, it won’t (thankfully).</p><p>But despite the dramatic effect of dynamic programming in most conversations — it is quite rightly said that it is the realization of the statement that ‘<em>Those who cannot remember the past are condemned to repeat it’. </em>And true to that, approaching solutions via dynamic programming will force you to think about what information you <em>actually </em>need vs storing nothing or everything.</p><p>Another interesting thing to think about in the realm of dynamic programming is runtime. Understanding big O notation and being able to compare and contrast the efficiency of dynamic programming vs brute force or recursive approach is an important skill to have. There may be cases in which dynamic programming is not increasing the efficiency and only adds to the complexity — in which case you may choose to reach the solution in a more straightforward manner.</p><p>But for those of us who are still a little confused by the concept of big O notation, it is a way to express the runtime of a program in terms of its growth relative to the input, as the input gets larger and larger. This is a good metric to use whether or not you are using dynamic programming and generally lets you judge how your program will perform for large inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDCySpQCEwcFOP44K3PJ0g.png" /><figcaption>Dynamic programming problems in 2D</figcaption></figure><p>In particular for dynamic programming, you need to take into consideration the various steps involved. This includes</p><ul><li>Pre-processing</li><li>Number of iterations</li><li>The runtime of a single iteration</li><li>Post-processing</li></ul><p>So whether or not you are considering competitive coding, or have a job interview coming up soon, remember, dynamic programming comes to those who practice it! Even though it may be quite frustrating at first, or even after a while — trust in the process. <a href="https://iq.opengenus.org/list-of-dynamic-programming-problems/">Here</a> is a great list of DP problems to get you started, good luck!</p><p>Tomorrow will be all about bit manipulation and math/geometry problems!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9de7f4dcf615" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-11-9de7f4dcf615">Building a GitHub account x 100 days of code: Day 11</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitHub account x 100 days of code: Day 10]]></title>
            <link>https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-10-9f4b709e7302?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f4b709e7302</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[dynamic-programming]]></category>
            <category><![CDATA[recursion]]></category>
            <category><![CDATA[leetcode]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Tue, 21 Feb 2023 01:51:41 GMT</pubDate>
            <atom:updated>2023-02-21T17:17:48.578Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Today’s Goal: Dynamic Programming (1-D)</strong></p><p>As a programmer, it is the natural next step to look for ways to improve the efficiency of your code, which is not without its challenges. But one approach that I have learned to appreciate greatly (over lots of time and practice) is dynamic programming.</p><p>Not only does dynamic programming make its way into almost every conversation about coding interviews and competitive coding, but it is also a great framework for approaching problems you may be trying to solve. Understanding why and how to leverage dynamic programming techniques can make you a better programmer, and reduce the time you need to spend coming up with an algorithm.</p><p>What is <strong>dynamic programming? </strong>It is an optimization approach to solving problems by breaking them down into simpler subproblems and using the smaller solutions to arrive at the one you are looking for. This reduces the overall computation and using dynamic programming you can optimize both space and time. Fun fact, dynamic programming is actually a mathematical concept rather than a programming one but bodes very well with the practicality of problem-solving in both cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_yRK47KoA-DY1Tpi3UiLtw.png" /><figcaption>1-D dynamic programming problems</figcaption></figure><p>When you are staring at any dynamic programming problem, you should first think about how you would break it down into smaller problems. Since most of these ask for either a min or max output, try to look at the base case and what the next steps would be. This step is <strong>divide.</strong></p><p>The next thing you should do is figure out how you can solve these subproblems, and avoid recalculation — store the results of the subproblem. Why? Because it often happens that when you break the problem down, you will need to solve the same subproblem multiple times to arrive at the final answer. This step is <strong>conquer, </strong>and storing the solution to the subproblems is<strong> memoization.</strong></p><p>The final step to solving any dynamic programming problem is thinking about how to use the subproblem solutions to solve the bigger picture. This is the <strong>combine </strong>step.</p><p>These are all definitely easier said than done, but the implications of using dynamic programming for problems that would otherwise require exponential running time are worth the effort. More often than not we can come up with a brute-force algorithm to solve any problem, dynamic programming uses that approach in an efficient way!</p><p>So if DP problems are intimidating to you right now, all you really need is practice. And after the 5th, 10th, or maybe even the 15th problem — it will come naturally to you!</p><p>Tomorrow is charted out for 2-D DP problems and whether my mood will continue to be this upbeat will really be put to the test. But one can hope (maybe?).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f4b709e7302" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-10-9f4b709e7302">Building a GitHub account x 100 days of code: Day 10</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitHub account x 100 days of code: Day 9]]></title>
            <link>https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-9-33acb9f1bb9c?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/33acb9f1bb9c</guid>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[graphs-are-fun]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Mon, 20 Feb 2023 04:20:49 GMT</pubDate>
            <atom:updated>2023-02-21T17:17:55.629Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Today’s Goal: Graphs</strong></p><p>Learning about graphs as a child was surely a fun challenge, between line graphs, histograms, bar graphs, and pie charts and color coding the sheet — I enjoyed math classes with graphing. Now as a CS major, the math part of me loves graphs, and the programming part of me — well, I have a certain wariness associated with coding them, but I appreciate them a whole lot. I now see graphs mostly as adjacency lists or matrices, a concept that would have greatly upset a younger me. But their use of them beats any other approach.</p><p>First things first, <strong>what is a graph? </strong>It is a data type, (abstract, like priority queues) that allows us to represent data with a certain relation between them (similar to heaps). Graphs are useful when there is more than just a min/max value difference between the node values, or if we are considering a factor other than the comparison of values. For example, drawing out your family tree is a great representation of a graph.</p><p>Some graphs may be undirected, meaning that there is a two-way connection/relation between the nodes; but if the relationship we are considering is directional, it affects how the graph is traversed.</p><p>Another way graphs are classified is connected and disconnected. This is based on whether all the nodes can be reached from any node or not. These classifications are important to take into consideration when building a graph of your own based on your particular need.</p><p>You may also want to consider assigning a certain weight to the edges connecting the nodes; particularly in situations when you are looking to prioritize one way of traversal over another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJLFAoe2UVjSpduqpG9Obw.png" /><figcaption>Graph problems</figcaption></figure><p>Specifically, in Python, it may be a good idea to take a look at some libraries that can make using graphs much more straightforward. Pro tip: whether or not you will use it in the future, skimming through a library’s functionalities before you start using it is a great idea. Since most users are looking to achieve a certain goal with data structures like graphs, there are several in-built functions that may save you several lines of code (I know it did for me). <a href="https://networkx.org/documentation/stable/tutorial.html">NetworkX </a>is a well-defined library for complex graphing and networks that I highly recommend you take a look at.</p><p>Today’s graph was quite a learning curve (haha), tomorrow we tackle the infamous dynamic programming. My my, how the days fly!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33acb9f1bb9c" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/building-a-github-account-x-100-days-of-code-day-9-33acb9f1bb9c">Building a GitHub account x 100 days of code: Day 9</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitHub account x 100 days of code: Day 8]]></title>
            <link>https://jyorajaraman.medium.com/building-a-github-account-x-100-days-of-code-day-8-1f804adaa7dc?source=rss-e27bc11288e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f804adaa7dc</guid>
            <category><![CDATA[priority-queue]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[heap]]></category>
            <dc:creator><![CDATA[Jyotsna Rajaraman]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 03:18:21 GMT</pubDate>
            <atom:updated>2023-02-19T03:18:21.869Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Today’s Goal: Heaps and Priority Queue</strong></p><p>In the ocean of sorting and searching techniques, heaps and priority queues have stood the test of time, carving out niche use cases in which they prove to be far more valuable than other data structures and techniques.</p><p>Like trees, heaps are arranged in nodes that are connected with others in a well-defined pattern — and are classified as min or max heaps. The difference between the two is how they are arranged with respect to each other.</p><p>In <strong>min </strong>heaps, the parent node is less than or equal to its children nodes. This means that the root node is the lowest value amongst the values in the data structure and the further down you go, the larger the values will get. In <strong>max heaps</strong>, the root node is the largest among the values and the value of the node decreases as you go further down the data structure. These are both very useful implementations for accessing the minimum/maximum value in constant time. However, to understand its use cases, like all other data structures, it is important to analyze its insert and delete operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRMgcouLY8haxYaJ6Xp2hg.png" /><figcaption>Heaps and Priority Queue problems</figcaption></figure><p>Heaps are best used in statistical applications when trying to find the nth largest or smallest value, which are DSA problems that come along more often than you think; and next time it does — consider implementing a heap.</p><p>If you have been following so far, the concepts of priority queues are actually very straightforward. It refers to an implementation in which elements are assigned a certain priority and dequeued in a particular order. This is useful in scheduling problems when there is a clear demarcation of priority in the usage of resources.</p><p>Priority queues are not a data structure, but rather an abstraction of a datatype. This means that it is more of a conceptual idea that you can implement using a data structure — and one way to do that is using heaps. In fact, a heap is a great choice to execute the concept of priority queues since all the priority queue operations are most efficient with heaps.</p><p>Todays’s questions I found were the most practical so far and pushed me to think of the most efficient way to approach problems.</p><p>Tomorrow I will be advancing to graphs, a concept that is more foreign to me than most others so far (finger-crossed).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f804adaa7dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>