<?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 Your Data Scientist Bestie 🌸 on Medium]]></title>
        <description><![CDATA[Stories by Your Data Scientist Bestie 🌸 on Medium]]></description>
        <link>https://medium.com/@your_data_scientist_bestie?source=rss-f3e43eeb5d0c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QRfjO4pLwIhsp3nlix6HEA.jpeg</url>
            <title>Stories by Your Data Scientist Bestie 🌸 on Medium</title>
            <link>https://medium.com/@your_data_scientist_bestie?source=rss-f3e43eeb5d0c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 00:40:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@your_data_scientist_bestie/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[Mastering Python: Merging Two Sorted Arrays in Place]]></title>
            <link>https://medium.com/@your_data_scientist_bestie/mastering-python-merging-two-sorted-arrays-in-place-b05377d88645?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b05377d88645</guid>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ｐｙｔｈｏｎ]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Wed, 26 Mar 2025 11:08:10 GMT</pubDate>
            <atom:updated>2025-03-26T11:08:10.680Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XyH-Duz4MgniaPqo73nffA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@lazycreekimages?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Michael Dziedzic</a> on <a href="https://unsplash.com/photos/white-and-black-i-love-you-print-ioIc2yH4xLU?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><blockquote>“Success is not final, failure is not fatal: It is the courage to continue that counts.” — Winston Churchill</blockquote><p><strong>Challenge Yourself: Merge Two Sorted Arrays<br></strong>Imagine you’re given two sorted arrays and tasked with merging them into one while maintaining their sorted order. This seemingly straightforward challenge tests your ability to efficiently manipulate arrays and implement sorting logic in Python.</p><p><strong>Your Challenge:<br></strong>You have:</p><ul><li>nums1, an array with allocated space to hold all elements from both arrays (m + n).</li><li>m, the number of initial elements in nums1.</li><li>nums2, a sorted array of integers.</li><li>n, the number of elements in nums2.</li></ul><p><strong>Your goal:</strong></p><ul><li>Merge nums2 into nums1 in a sorted manner, modifying nums1 in place.</li></ul><p>Please attempt the challenge before looking at the solution below :)</p><p><strong>Step-by-Step Solution Explanation:<br>Step 1: Initialize Pointers<br></strong>We start by initializing three pointers:</p><ul><li>p1 points to the end of the valid elements in nums1 (m — 1).</li><li>p2 points to the end of nums2 (n — 1).</li><li>p3 points to the end of the allocated space in nums1 (m + n — 1).</li></ul><pre>class Solution:<br>    def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -&gt; None:<br>        p1 = m - 1<br>        p2 = n - 1<br>        p3 = m + n - 1</pre><p><strong>Step 2: Merge Arrays from the End<br></strong>Using a while loop, <em>we compare elements from nums1 and nums2 starting from their respective ends (p1 and p2</em>). We place the larger element at nums1[p3] and decrement the respective pointers (p1, p2, p3) to continue merging until all elements from nums2 are placed in nums1.</p><pre>while p1 &gt;= 0 and p2 &gt;= 0:<br>    if nums1[p1] &gt; nums2[p2]:<br>        nums1[p3] = nums1[p1]<br>        p1 -= 1<br>    else:<br>        nums1[p3] = nums2[p2]<br>        p2 -= 1<br>    p3 -= 1</pre><p><strong>Step 3: Handle Remaining Elements<br></strong>After exiting the main merge loop, if there are remaining elements in nums2 (p2 &gt;= 0), copy them directly to the beginning of nums1.</p><pre>while p2 &gt;= 0:<br>    nums1[p3] = nums2[p2]<br>    p2 -= 1<br>    p3 -= 1</pre><p><strong>Python Code Solution for Examples:</strong></p><p><strong>Example 1:</strong></p><pre>sol = Solution()<br>nums1 = [1, 2, 3, 0, 0, 0]<br>m = 3<br>nums2 = [2, 5, 6]<br>n = 3<br>sol.merge(nums1, m, nums2, n)<br>print(&quot;Merged nums1:&quot;, nums1)<br># Output: [1, 2, 2, 3, 5, 6]</pre><p><strong>Example 2:</strong></p><pre>sol = Solution()<br>nums1 = [0]<br>m = 0<br>nums2 = [1]<br>n = 1<br>sol.merge(nums1, m, nums2, n)<br>print(&quot;Merged nums1:&quot;, nums1)<br># Output: [1]</pre><p><strong>Conclusion:<br></strong>Mastering the art of merging sorted arrays in place not only enhances your problem-solving skills but also solidifies your understanding of efficient algorithms in Python. With practice, challenges like these become opportunities to showcase your coding prowess!</p><p>Happy coding and merging arrays effortlessly!</p><p>XoXo,</p><p>Your Data Science Bestie</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b05377d88645" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner Friendly Introduction to AI]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@your_data_scientist_bestie/a-beginner-friendly-introduction-to-ai-f4a8d3d36412?source=rss-f3e43eeb5d0c------2"><img src="https://cdn-images-1.medium.com/max/1400/1*73JfL6wv3lkLgJndbDNsVw.png" width="1400"></a></p><p class="medium-feed-snippet">&#x201C;The best way to predict the future is to invent it.&#x201D;&#x200A;&#x2014;&#x200A;Alan Kay</p><p class="medium-feed-link"><a href="https://medium.com/@your_data_scientist_bestie/a-beginner-friendly-introduction-to-ai-f4a8d3d36412?source=rss-f3e43eeb5d0c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@your_data_scientist_bestie/a-beginner-friendly-introduction-to-ai-f4a8d3d36412?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4a8d3d36412</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Fri, 14 Mar 2025 14:54:52 GMT</pubDate>
            <atom:updated>2025-03-14T14:54:52.457Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Exploring Data Types in Data Science: Understanding the Building Blocks of Analysis]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@your_data_scientist_bestie/exploring-data-types-in-data-science-understanding-the-building-blocks-of-analysis-d43249e115b8?source=rss-f3e43eeb5d0c------2"><img src="https://cdn-images-1.medium.com/max/640/1*IHuZ6mI5xj0q75_hhaUFaQ.png" width="640"></a></p><p class="medium-feed-snippet">&#x201C;Without data, you&#x2019;re just another person with an opinion.&#x201D;&#x200A;&#x2014;&#x200A;W. Edwards Deming</p><p class="medium-feed-link"><a href="https://medium.com/@your_data_scientist_bestie/exploring-data-types-in-data-science-understanding-the-building-blocks-of-analysis-d43249e115b8?source=rss-f3e43eeb5d0c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@your_data_scientist_bestie/exploring-data-types-in-data-science-understanding-the-building-blocks-of-analysis-d43249e115b8?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d43249e115b8</guid>
            <category><![CDATA[data-type]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Fri, 14 Mar 2025 13:43:34 GMT</pubDate>
            <atom:updated>2025-03-14T13:43:34.490Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Unlocking Insights: Why Specific Visuals Matter for Numerical and Categorical Data]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@your_data_scientist_bestie/unlocking-insights-why-specific-visuals-matter-for-numerical-and-categorical-data-2b10e4d02258?source=rss-f3e43eeb5d0c------2"><img src="https://cdn-images-1.medium.com/max/2600/1*T6iWD1kbynjQL6eaaw3_mw.jpeg" width="4810"></a></p><p class="medium-feed-snippet">Data is the new oil. It&#x2019;s valuable, but if unrefined it cannot really be used.
&#x200A;&#x2014;&#x200A;Clive Humby</p><p class="medium-feed-link"><a href="https://medium.com/@your_data_scientist_bestie/unlocking-insights-why-specific-visuals-matter-for-numerical-and-categorical-data-2b10e4d02258?source=rss-f3e43eeb5d0c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@your_data_scientist_bestie/unlocking-insights-why-specific-visuals-matter-for-numerical-and-categorical-data-2b10e4d02258?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b10e4d02258</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 16:15:10 GMT</pubDate>
            <atom:updated>2025-03-14T12:33:55.750Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Exploring Data with Visualizations: A Guide for Beginners]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@your_data_scientist_bestie/exploring-data-with-visualizations-a-guide-for-beginners-145eaaff8e6a?source=rss-f3e43eeb5d0c------2"><img src="https://cdn-images-1.medium.com/max/620/1*DLzHn7h1jlkMojm6HTXgew.png" width="620"></a></p><p class="medium-feed-snippet">&#x201C;Visualizing data is like painting a picture; it reveals patterns, trends, and stories hidden within the numbers.&#x201D; -Tukey</p><p class="medium-feed-link"><a href="https://medium.com/@your_data_scientist_bestie/exploring-data-with-visualizations-a-guide-for-beginners-145eaaff8e6a?source=rss-f3e43eeb5d0c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@your_data_scientist_bestie/exploring-data-with-visualizations-a-guide-for-beginners-145eaaff8e6a?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/145eaaff8e6a</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analytics]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 13:23:41 GMT</pubDate>
            <atom:updated>2025-03-14T12:38:52.967Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Unlocking Precision in MySQL: Understanding DECIMAL Data Type]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@your_data_scientist_bestie/unlocking-precision-in-mysql-understanding-decimal-data-type-bfcc986fe8c2?source=rss-f3e43eeb5d0c------2"><img src="https://cdn-images-1.medium.com/max/2600/0*tgxxS4-khOBrXTA2" width="5999"></a></p><p class="medium-feed-snippet">&#x201C;Precision is not just about decimal places; it&#x2019;s about making every digit count.&#x201D; &#x2014; Brad Barton</p><p class="medium-feed-link"><a href="https://medium.com/@your_data_scientist_bestie/unlocking-precision-in-mysql-understanding-decimal-data-type-bfcc986fe8c2?source=rss-f3e43eeb5d0c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@your_data_scientist_bestie/unlocking-precision-in-mysql-understanding-decimal-data-type-bfcc986fe8c2?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfcc986fe8c2</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[queries-in-sql-interview]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Wed, 22 Jan 2025 14:03:30 GMT</pubDate>
            <atom:updated>2025-03-14T12:40:09.326Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Unlocking Data Insights: A Tale of City Names and Lengths]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@your_data_scientist_bestie/unlocking-data-insights-a-tale-of-city-names-and-lengths-12cd18f2b851?source=rss-f3e43eeb5d0c------2"><img src="https://cdn-images-1.medium.com/max/2600/1*OoAqglu_C7ZWnEpPfNhczA.jpeg" width="2947"></a></p><p class="medium-feed-snippet">&#x201C;Data is the new oil, and your queries are the drill.&#x201D;&#x200A;&#x2014;&#x200A;Unknown</p><p class="medium-feed-link"><a href="https://medium.com/@your_data_scientist_bestie/unlocking-data-insights-a-tale-of-city-names-and-lengths-12cd18f2b851?source=rss-f3e43eeb5d0c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@your_data_scientist_bestie/unlocking-data-insights-a-tale-of-city-names-and-lengths-12cd18f2b851?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/12cd18f2b851</guid>
            <category><![CDATA[dat]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-ana-analytics]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Mon, 13 Jan 2025 10:59:18 GMT</pubDate>
            <atom:updated>2025-03-14T12:41:53.655Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Mastering Bubble Sort in Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@your_data_scientist_bestie/mastering-bubble-sort-in-python-ccbc2066809d?source=rss-f3e43eeb5d0c------2"><img src="https://cdn-images-1.medium.com/max/2600/1*Q3IN6WLO5qV0whdU6LbZhQ.jpeg" width="4316"></a></p><p class="medium-feed-snippet">In the journey of coding, understanding the fundamentals is like mastering the scales in music&#x200A;&#x2014;&#x200A;it lays the foundation for beautiful&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@your_data_scientist_bestie/mastering-bubble-sort-in-python-ccbc2066809d?source=rss-f3e43eeb5d0c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@your_data_scientist_bestie/mastering-bubble-sort-in-python-ccbc2066809d?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccbc2066809d</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sorting-algorithms]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Mon, 04 Nov 2024 10:02:16 GMT</pubDate>
            <atom:updated>2025-03-14T12:43:17.691Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Finding Maximum Values in Python: A Simple Yet Essential Function]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@your_data_scientist_bestie/finding-maximum-values-in-python-a-simple-yet-essential-function-b222a3fc6ed3?source=rss-f3e43eeb5d0c------2"><img src="https://cdn-images-1.medium.com/max/2600/1*nVOqDzQMDdEpL5lbk_t3nw.jpeg" width="6720"></a></p><p class="medium-feed-snippet">Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.&#x201D; &#x2014; Albert&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@your_data_scientist_bestie/finding-maximum-values-in-python-a-simple-yet-essential-function-b222a3fc6ed3?source=rss-f3e43eeb5d0c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@your_data_scientist_bestie/finding-maximum-values-in-python-a-simple-yet-essential-function-b222a3fc6ed3?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b222a3fc6ed3</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[learn-to-code]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[coding-tips]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Fri, 01 Nov 2024 10:02:01 GMT</pubDate>
            <atom:updated>2025-03-14T12:44:24.928Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Unveiling Python Magic: Checking Palindromes Made Simple]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@your_data_scientist_bestie/unveiling-python-magic-checking-palindromes-made-simple-a13c02731b60?source=rss-f3e43eeb5d0c------2"><img src="https://cdn-images-1.medium.com/max/2600/1*0C9bGBUi0lwL905MsduG2w.jpeg" width="6720"></a></p><p class="medium-feed-snippet">In every job that must be done, there is an element of fun.&#x200A;&#x2014;&#x200A;Mary Poppins</p><p class="medium-feed-link"><a href="https://medium.com/@your_data_scientist_bestie/unveiling-python-magic-checking-palindromes-made-simple-a13c02731b60?source=rss-f3e43eeb5d0c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@your_data_scientist_bestie/unveiling-python-magic-checking-palindromes-made-simple-a13c02731b60?source=rss-f3e43eeb5d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a13c02731b60</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[code-snippet]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[learn-to-code]]></category>
            <category><![CDATA[python-skill]]></category>
            <dc:creator><![CDATA[Your Data Scientist Bestie ]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 10:02:18 GMT</pubDate>
            <atom:updated>2025-03-14T12:11:11.228Z</atom:updated>
        </item>
    </channel>
</rss>