<?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 yuvan bajjurla on Medium]]></title>
        <description><![CDATA[Stories by yuvan bajjurla on Medium]]></description>
        <link>https://medium.com/@yuvan.bajjurla?source=rss-1ff17973724------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3qvx4oimJM4CPvoykcOVsA.jpeg</url>
            <title>Stories by yuvan bajjurla on Medium</title>
            <link>https://medium.com/@yuvan.bajjurla?source=rss-1ff17973724------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:18:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yuvan.bajjurla/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[Max Consecutive Ones]]></title>
            <link>https://medium.com/@yuvan.bajjurla/max-consecutive-ones-a4b697efa8b2?source=rss-1ff17973724------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4b697efa8b2</guid>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[dsa-interview]]></category>
            <category><![CDATA[dsa-courses]]></category>
            <category><![CDATA[interview-questions]]></category>
            <dc:creator><![CDATA[yuvan bajjurla]]></dc:creator>
            <pubDate>Sun, 07 Jul 2024 07:28:46 GMT</pubDate>
            <atom:updated>2024-07-07T07:28:46.771Z</atom:updated>
            <content:encoded><![CDATA[<p>Given a binary array nums, return <em>the maximum number of consecutive </em>1<em>&#39;s in the array</em>.</p><p><strong>Example 1:</strong></p><pre>Input: nums = [1,1,0,1,1,1]<br>Output: 3<br>Explanation: The first two digits or the last three digits are consecutive 1s. The maximum number of consecutive 1s is 3.</pre><p><strong>Constraints:</strong></p><ul><li>1 &lt;= nums.length &lt;= 105</li><li>nums[i] is either 0 or 1.</li></ul><p>Approach Explanation:</p><ul><li>We’ll iterate through the array, keeping track of the current consecutive 1s count (current).</li><li>Whenever we encounter a 0, we reset current to 0.</li><li>We also maintain a max variable to store the maximum consecutive 1s encountered so far.</li><li>The key idea is to update max whenever we find a longer sequence of consecutive 1s.</li></ul><p>Algorithm:</p><ul><li>Initialize current and max to 0.</li><li>Iterate through the array:</li><li>If nums[i] is 1, increment current.</li><li>If nums[i] is 0, reset current to 0.</li><li>Update max with Math.max(max, current).</li><li>Return the final value of max.</li></ul><p>Pattern Used: This problem can be solved using the sliding window pattern. We maintain a window (in this case, the consecutive 1s) and slide it as we iterate through the array.</p><p>Solution:</p><pre>class Solution {<br>    public int findMaxConsecutiveOnes(int[] nums) {<br>        int count=0;<br>        int n= nums.length;<br><br>        int current=0,max =0;<br><br>        for(int i=0;i&lt;n;i++)<br>        {<br>         if(nums[i]==1)<br>         {<br>            current++;<br>         }<br>         else<br>         {<br>            current = 0;<br>         }<br>         max= Math.max(max,current);<br>        }<br><br>        return max;<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4b697efa8b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Experience about the one million arab coders program]]></title>
            <link>https://medium.com/@yuvan.bajjurla/experience-about-the-one-million-arab-coders-program-88b5ca2b4d35?source=rss-1ff17973724------2</link>
            <guid isPermaLink="false">https://medium.com/p/88b5ca2b4d35</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[yuvan bajjurla]]></dc:creator>
            <pubDate>Sun, 07 Oct 2018 08:07:47 GMT</pubDate>
            <atom:updated>2018-10-07T08:07:47.654Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all thanks to the one million arab coders program offered by the udacity which helped to develop skills in the field of front end development.</p><p>It’s really a challenging course which tests your focus and the ability to concentrate well on a course for longer time. The Final assessment was like a piece of cake and it was also little bit confusing as well as tricky.</p><p>You can successfully finish this final assessment just within 30 minutes if you have a proper grip in the concepts of front end web development (HTML,CSS ,JS). Some of the interesting facts about this course is that it offers the entire course in the arabic subtitles, Discussion forums and the response from the mentors is really awesome.</p><p>I have no words to tell and I am really excited and waiting for the results of the Final Assessment of the one million arab coders.Finally thanks to everyone who had me helped to give your assistance and spending your valuable time for answering all the queries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88b5ca2b4d35" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>