<?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 praveen nooka on Medium]]></title>
        <description><![CDATA[Stories by praveen nooka on Medium]]></description>
        <link>https://medium.com/@praveennooka123?source=rss-d528a6ec3d5d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QFhtbhVKnO9jp0TG</url>
            <title>Stories by praveen nooka on Medium</title>
            <link>https://medium.com/@praveennooka123?source=rss-d528a6ec3d5d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:28:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@praveennooka123/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[Solving Codeforces Problems Beyond Contests]]></title>
            <link>https://medium.com/@praveennooka123/solving-codeforces-problems-beyond-contests-627800c6f0f6?source=rss-d528a6ec3d5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/627800c6f0f6</guid>
            <category><![CDATA[codeforces]]></category>
            <category><![CDATA[innovative-project]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[problem-solving]]></category>
            <dc:creator><![CDATA[praveen nooka]]></dc:creator>
            <pubDate>Thu, 03 Oct 2024 07:24:51 GMT</pubDate>
            <atom:updated>2024-10-03T07:24:51.943Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>My First Chrome Extension</strong></h4><h3><strong>Introduction</strong></h3><p>In this blog, I’ll share the story of turning an idea into reality. Instead of focusing on the coding details, I’ll discuss how to approach a problem and what kind of projects can be inspiring for students and enthusiasts. It’s about finding a need, coming up with a solution, and learning along the way.</p><h3>The Spark Behind My Project</h3><p>Since 2020, I’ve been using <strong>Codeforces</strong> (CF) for competitive programming, and over time, I noticed there were plenty of popular extensions for predicting contest ratings and tracking practice. But I felt there were still areas that could be improved. So, I started exploring what could be done to enhance the user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*1xHrVahvaIVmiVR4.jpg" /></figure><p>I was tired of endlessly following YouTube tutorials and Udemy courses for projects. I wanted to step away from guided work and challenge myself by building something from scratch, something that could be useful to others.</p><h3>The Problem Statement</h3><p>While CF has a “<strong>friends standings</strong>” feature that allows you to filter contest leaderboards based on your friend list, I found myself wanting more. During contests, I wanted to track the progress of my college peers and juniors as a way to stay motivated. Seeing others from my community actively participating and improving in <strong>competitive programming</strong> (CP) pushes me further. Unfortunately, CF cannot filter standings by organisation, something <strong>CodeChef</strong> (CC) already offers. This sparked the idea for my extension to fill that gap on CF.</p><h3>The Approach</h3><p>At first, I thought about using Codeforces’ API, but the public API lacks flexible endpoints. Fetching and filtering the standings for contests with 20–30k participants wasn’t practical because the API pulls massive amounts of data (20–25 MB), making it inefficient.</p><p>I then considered <strong>web scraping</strong>, thinking I could filter participants by their college. While this approach worked in theory, it was slow and couldn’t handle interactive features like viewing participant solutions, which require JavaScript execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*ZUJGlWLnlVUdtpL4.png" /></figure><p>Eventually, I found a better approach. CF allows filtering standings based on user-created lists. I automated the process of creating a list of users from the same institute and updating it every 24 hours. For flexibility, users can also manually refresh the list using the extension. Now, with a simple click, a new “<strong>college-standings</strong>” section appears, showing filtered standings in real-time without the need for backend rendering.</p><h3>The Development</h3><p>Before jumping into development, I watched a YouTube video on creating a Chrome extension and read a few articles to get a basic understanding. I decided to use <strong>JavaScript</strong> with that foundation since I had some experience with it. To speed up the process, I turned to <strong>ChatGPT</strong> for help. I provided instructions, received code suggestions, and debugged along the way. This approach allowed me to stay on track without getting bogged down by small details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*diHpNRH3dxNtAjgIUTTKfA.png" /><figcaption>Without CF college standings</figcaption></figure><figure><img alt="with my extenion" src="https://cdn-images-1.medium.com/max/800/0*ihaAIbdMcK_8uMKV" /><figcaption>With CF College Standings</figcaption></figure><h3>The Implementation</h3><p>To create the organization list, I first retrieved the current user’s organization ID by scraping the handles of all users and making an API call (private endpoint, using the <strong>CSRF</strong> token obtained via web scraping). To avoid creating multiple lists, I stored the organization list ID in the browser’s local storage <strong>(client-side caching)</strong>.</p><p>For auto-updating, I stored a <strong>lastFetched</strong> timestamp in local storage to refresh the list every 24 hours. A new “college standings” section appears on the standings page, and when clicked, it redirects to the standings filtered by the organization list.</p><p>For the country rank feature, I iterated through standings pages, checking the participant flags (refer to the above standings image) via web scraping, and incrementing a counter. Since country rank varies during ongoing contests, I only fetch it after the contest is completed. Once fetched, the rank is stored in local storage along with the contest ID for future reference.</p><pre>// how data is stored in local storage<br>orgainsation-id: &quot;12345&quot;,<br>lastFetched: 1727257779898,<br>country-ranks: {<br>    // contest-id: rank<br>    1934: 200,<br>    1925: 302<br>}</pre><h3>The Conclusion</h3><p>Building this extension took about two days (around 12 hours). Once I released it on the Chrome Web Store, the response was amazing, now over 660+ people use it! I even added a user-requested feature showing your “<strong>country rank</strong>” once the contest ends. It feels great to see something I built helping others, and it encourages me to keep improving the project.</p><h3>References</h3><p><strong>Extension</strong>: <a href="https://chromewebstore.google.com/detail/cf-college-standings/cfifnplmkdjjchndbnpdadfipjiahjie?hl=en">https://chromewebstore.google.com/detail/cf-college-standings/cfifnplmkdjjchndbnpdadfipjiahjie?hl=en</a></p><p><strong>CF Blog</strong>: <a href="https://codeforces.com/blog/entry/132196">https://codeforces.com/blog/entry/132196</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=627800c6f0f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>