<?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 Paramjit Saha on Medium]]></title>
        <description><![CDATA[Stories by Paramjit Saha on Medium]]></description>
        <link>https://medium.com/@sahaparamjit?source=rss-b8cb83ef4fb9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8ToBlgaESqJ6rsoo.</url>
            <title>Stories by Paramjit Saha on Medium</title>
            <link>https://medium.com/@sahaparamjit?source=rss-b8cb83ef4fb9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:53:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sahaparamjit/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[System Design Interview — Preparation]]></title>
            <link>https://medium.com/@sahaparamjit/system-design-interview-preparation-e72577d86da0?source=rss-b8cb83ef4fb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e72577d86da0</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <dc:creator><![CDATA[Paramjit Saha]]></dc:creator>
            <pubDate>Fri, 05 Jul 2024 19:21:11 GMT</pubDate>
            <atom:updated>2024-07-05T19:21:11.156Z</atom:updated>
            <content:encoded><![CDATA[<h3>System Design Interview — Preparation</h3><ol><li>Basics</li><li>Trade offs<br>a. Strong vs Eventual Consistency<br>b. Latency vs Throughput<br>c. ACID (Atomicity, Consistency, Isolation, and Durability) vs BASE (Basically Available, Soft state, and Eventual consistency).<br>d.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e72577d86da0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Important LLD questions for Interview]]></title>
            <link>https://medium.com/@sahaparamjit/important-lld-questions-for-interview-34dd48476a46?source=rss-b8cb83ef4fb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/34dd48476a46</guid>
            <category><![CDATA[low-level-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[lld]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Paramjit Saha]]></dc:creator>
            <pubDate>Mon, 10 Jun 2024 11:06:10 GMT</pubDate>
            <atom:updated>2024-06-10T11:06:10.504Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Design Parking Lot.<br>(Multi-Level, Multi entry/exit, Multiple parking type)</li><li>Design Elevator.</li><li>Design Chess/Sudoku.</li><li>Design BookMyShow.</li><li>Design Vending Machine/ATM.</li><li>Design Meeting Scheduler.</li><li>Design Behrouz Order Management System.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34dd48476a46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algorithms Mind map — Interview prep]]></title>
            <link>https://medium.com/@sahaparamjit/algorithms-mind-map-interview-prep-2314e4ee011c?source=rss-b8cb83ef4fb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2314e4ee011c</guid>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Paramjit Saha]]></dc:creator>
            <pubDate>Sun, 09 Jun 2024 16:36:25 GMT</pubDate>
            <atom:updated>2024-06-09T16:36:25.697Z</atom:updated>
            <content:encoded><![CDATA[<h3>Algorithms Mind map — Interview prep</h3><h3>1. Searching Algorithms</h3><p>These algorithms are used to find an element in a data structure.</p><ul><li><strong>Linear Search</strong></li><li><strong>Binary Search</strong></li><li><strong>Depth-First Search (DFS)</strong></li><li><strong>Breadth-First Search (BFS)</strong></li></ul><h3>2. Graph Algorithms</h3><p>Algorithms used for processing and analysing graphs.</p><ul><li><strong>Dijkstra’s Algorithm</strong></li><li><strong>Kruskal’s Algorithm</strong></li><li><strong>Prim’s Algorithm</strong></li><li><strong>Kahn’s Algorithm (Topological Sorting)</strong></li></ul><pre>1. Compute in-degree (number of incoming edges) for each node.<br>2. Initialize a queue with all nodes having in-degree of 0.<br>3. While the queue is not empty:<br>   - Remove a node from the queue.<br>   - Append it to the topological order list.<br>   - Decrease the in-degree of all its neighbors by 1.<br>   - If any neighbor&#39;s in-degree becomes 0, add it to the queue.<br>4. If all nodes are processed, return the topological order; otherwise, there is a cycle.</pre><ul><li><strong>Floyd-Warshall Algorithm</strong></li></ul><h3>3. Dynamic Programming Algorithms</h3><p>These algorithms solve complex problems by breaking them down into simpler subproblems and solving each subproblem just once, storing the solutions for future use.</p><ul><li><strong>Knapsack Problem</strong></li><li><strong>Longest Common Subsequence (LCS)</strong></li><li><strong>Fibonacci Sequence</strong></li><li><strong>Matrix Chain Multiplication</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2314e4ee011c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Important links from linkedin posts]]></title>
            <link>https://medium.com/@sahaparamjit/important-links-from-linkedin-posts-249226fedb88?source=rss-b8cb83ef4fb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/249226fedb88</guid>
            <category><![CDATA[linkedin]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[interview-preparation]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Paramjit Saha]]></dc:creator>
            <pubDate>Thu, 25 Apr 2024 05:24:48 GMT</pubDate>
            <atom:updated>2024-11-08T05:52:21.168Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>33 Important DP questions</strong></li></ol><p>The following problems cover DP topics:<br>- strings<br>- distinct ways<br>- decision-making<br>- merging intervals</p><p><a href="https://www.linkedin.com/posts/karan-saxena-466b07190_i-spent-4-hours-collecting-these-31-dp-problems-activity-7188902804386668544-KM0h?utm_source=share&amp;utm_medium=member_desktop">Karan Saxena on LinkedIn: I spent 4+ hours collecting these 31 DP problems of all patterns... | 39 comments</a></p><p>Comments : <a href="https://www.linkedin.com/feed/update/urn:li:activity:7188902804386668544?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7188902804386668544%2C7188903603732918272%29&amp;dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287188903603732918272%2Curn%3Ali%3Aactivity%3A7188902804386668544%29">https://www.linkedin.com/feed/update/urn:li:activity:7188902804386668544?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7188902804386668544%2C7188903603732918272%29&amp;dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287188903603732918272%2Curn%3Ali%3Aactivity%3A7188902804386668544%29</a></p><p>2. System design prep material</p><p><a href="https://www.linkedin.com/posts/tauseeffayyaz_systemdesign-interviewtips-programming-activity-7189171085030932481-2PBI?utm_source=share&amp;utm_medium=member_desktop">Tauseef Fayyaz on LinkedIn: #systemdesign #interviewtips #programming #codinginterview #guide | 14 comments</a></p><p>3. Problem Solving Patterns</p><p><a href="https://www.linkedin.com/posts/karan-saxena-466b07190_dsa-was-extremely-hard-for-me-initially-until-activity-7191435432096616448-jK_q">Karan Saxena on LinkedIn: DSA was extremely hard for me initially until I found these 16... | 64 comments</a></p><p>4. 12 Week Leet code Programme</p><p><a href="https://docs.google.com/document/d/1wUCqhVHydWiDk6FJdFLSMpgigNrGcs4OFZg0Wa7JGEw/">https://docs.google.com/document/d/1wUCqhVHydWiDk6FJdFLSMpgigNrGcs4OFZg0Wa7JGEw/</a></p><p>5. LLD questions</p><p><a href="https://github.com/kumaransg/LLD">GitHub - kumaransg/LLD: Curated Collection of all Low level design Questions and implementation asked in major Tech companies , Get yourself prepared for the LLD round and ace the interview.</a></p><p>6. <a href="https://leetcode.com/discuss/interview-question/1140451/Helpful-list-of-LeetCode-Posts-on-System-Design-at-Facebook-Google-Amazon-Uber-Microsoft">✅ Helpful list of LeetCode Posts on System Design at Facebook, Google, Amazon, Uber, Microsoft — LeetCode Discuss</a></p><p>7. Graphs and Trees</p><p><a href="https://www.linkedin.com/posts/sai-ram-somanaboina_graphs-and-trees-were-quite-tough-in-the-activity-7193957634205491200-1Mak">Sai Ram Somanaboina on LinkedIn: Graphs and Trees were quite tough in the beginning for me until I found...</a></p><p>8. Sliding Window Problems</p><p><a href="https://leetcode.com/problems/minimum-window-substring/description/comments/1566848">https://leetcode.com/problems/minimum-window-substring/description/comments/1566848</a></p><p>9. Engineering Blogs</p><p><a href="https://www.linkedin.com/posts/fernando-franco-4696708_if-you-want-to-become-a-better-backend-engineer-activity-7194599545459146752-Oulu/">Fernando Franco on LinkedIn: If you want to become a better backend engineer, read these blogs: ↓ *... | 36 comments</a></p><p>10. 70 Interesting problems to help during Interview (Already part of Blind 75/Grind 75/Neetcode 150)</p><p><a href="https://www.linkedin.com/posts/kartikey-sapra_i-spent-4-hours-to-collect-the-links-of-activity-7198365904563286016-T_Hf/">Kartikey Sapra on LinkedIn: I spent 4+ hours to collect the links of these 70 Leetcode problems that... | 48 comments</a></p><p>11. Github repos</p><p><a href="https://www.linkedin.com/posts/arvindtelharkar_i-spent-3-hours-last-weekend-finding-the-activity-7205789438126301184-Fc1d">Arvind Telharkar on LinkedIn: I spent 3 hours last weekend finding the best GitHub repos for software...</a></p><p>12. Binary Search related questions</p><p><a href="https://www.linkedin.com/posts/karan-saxena-466b07190_binary-search-is-the-most-basic-algorithm-activity-7207653669289259008-g6_O">Karan Saxena on LinkedIn: Binary search is the most basic algorithm we learn during CS fundamentals,...</a></p><p>13. SOLID Principles</p><p><a href="https://www.linkedin.com/posts/kartikey-sapra_interviewer-you-have-10-minutes-to-explain-activity-7208834494403862529-944E">Kartikey Sapra on LinkedIn: Interviewer: You have 10 minutes to explain all 5 SOLID principles to... | 14 comments</a></p><p>14. HashTable and Map related problems</p><p><a href="https://www.linkedin.com/posts/sumitlad_if-i-was-revising-hash-tables-and-maps-for-activity-7209554007982235649-YTTK">Sumit L. on LinkedIn: If I was revising Hash Tables and Maps for a coding interview this week...</a></p><p>15. <a href="https://leetcode.com/discuss/interview-question/5366542/all-leetcode-articles-on-coding-patterns-summarized-in-one-page">All leetcode articles on coding patterns summarized in one page. — LeetCode Discuss</a></p><p>16. Some important patterns</p><p><a href="https://www.linkedin.com/posts/kartikey-sapra_i-spent-4-hours-to-collect-the-links-of-activity-7214254829714432003-ADZF?utm_source=share&amp;utm_medium=member_desktop">Kartikey Sapra on LinkedIn: I spent 4+ hours to collect the links of these 70 Leetcode problems that... | 42 comments</a></p><p>17. Database design</p><p><a href="https://www.linkedin.com/posts/goyalshalini_12-must-read-blogs-for-choosing-the-suitable-activity-7219325041228873729-Pur0?utm_source=share&amp;utm_medium=member_ios">Shalini Goyal on LinkedIn: 12 Must-read blogs for choosing the suitable database for your system...</a></p><p>18. System design prep</p><p><a href="https://www.linkedin.com/posts/goyalshalini_youre-not-prepared-for-a-system-design-interview-activity-7260274824353038336-_zVa?utm_source=share&amp;utm_medium=member_ios">Shalini Goyal on LinkedIn: You&#39;re not prepared for a system design interview if you still don&#39;t have... | 11 comments</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=249226fedb88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design Series — Design Spotify]]></title>
            <link>https://medium.com/@sahaparamjit/system-design-series-design-spotify-b87dd4b32ade?source=rss-b8cb83ef4fb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b87dd4b32ade</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Paramjit Saha]]></dc:creator>
            <pubDate>Tue, 13 Feb 2024 18:14:41 GMT</pubDate>
            <atom:updated>2024-02-13T18:38:02.484Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*QgF8F7b0ECESeCnNMEBw2g.png" /></figure><h3>System Design Series — Design Spotify</h3><p><strong>Functional Requirements</strong></p><ol><li>Search a song based on query.</li><li>Play/Stream a song based on search result / Play the selected song.</li><li>Create Playlist.</li></ol><p><strong>Non-functional requirements</strong></p><ol><li>Highly available system</li><li>High Consistency <strong>not</strong> required.</li><li>System should be scalable.</li></ol><h3><strong>Back of the Envelop Calculation</strong></h3><p>Users Count = 600 million (Source — <a href="https://newsroom.spotify.com/company-info/#:~:text=We%20are%20the%20world%27s%20most,in%20more%20than%20180%20markets.">Spotify — About Spotify</a>)<br>15% DAU = 90 million (Source — <a href="https://www.searchlogistics.com/learn/statistics/spotify-statistics/#:~:text=Key%20Spotify%20Statistics,-Despite%20not%20being&amp;text=Spotify%20has%2082%20million%20songs,236%20million%20are%20Premium%20subscribers">Spotify Statistics</a>)<br>No. of Songs = 80million (Source — <a href="https://www.searchlogistics.com/learn/statistics/spotify-statistics/#:~:text=Key%20Spotify%20Statistics,-Despite%20not%20being&amp;text=Spotify%20has%2082%20million%20songs,236%20million%20are%20Premium%20subscribers">Spotify Statistics</a>)<br>Average song size mp3= 5MB (assumption)</p><p>Music storage = 5*10⁶ (5MB) * 80*10⁶(No. of songs) bytes = 400TB<br>Replication (3) = 400*3 = 1.2 PetaByte</p><h3>API Contracts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YPVWNe_LmmZhiZWaGkSDjw.png" /></figure><h3>High Level Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjDzOpdSZD5jZZ0CaQ--4w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b87dd4b32ade" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Important Database Topics and Explanation]]></title>
            <link>https://medium.com/@sahaparamjit/important-database-topics-and-explanation-214476c366a3?source=rss-b8cb83ef4fb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/214476c366a3</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[maang]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[faang]]></category>
            <dc:creator><![CDATA[Paramjit Saha]]></dc:creator>
            <pubDate>Fri, 08 Dec 2023 10:16:54 GMT</pubDate>
            <atom:updated>2023-12-08T10:58:29.435Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Database Management Systems (DBMS):</li></ol><ul><li>Relational databases (e.g., MySQL, <strong>PostgreSQL</strong>, Oracle)</li><li>NoSQL databases (e.g., <strong>MongoDB</strong>, <strong>Cassandra</strong>, Redis)</li><li>Understanding of ACID properties and CAP theorem</li><li>Database indexing and query optimization</li></ul><p>2. SQL:</p><ul><li>Complex queries and joins</li><li>Aggregation functions</li><li>Transactions and locking</li><li>Stored procedures and triggers</li></ul><p>3. Data Modelling:</p><ul><li>Entity-Relationship Diagrams (ERD)</li><li>Normalization and denormalization</li><li>Indexing strategies</li><li>Database design best practices</li></ul><p>4. ORM (Object-Relational Mapping):</p><ul><li>Familiarity with popular ORMs (e.g. Hibernate)</li><li>Mapping database tables to application objects</li><li>Lazy loading and eager loading</li></ul><p>5. Query Optimization:</p><ul><li>Profiling and optimizing SQL queries.</li><li>Explain plans and query analysers.</li><li>Caching strategies</li></ul><p>6. Distributed Systems:</p><ul><li>Understanding of distributed databases</li><li>Consistency, availability, and partition tolerance (CAP theorem)</li><li>Distributed caching systems (e.g., Redis, Memcached)</li></ul><p>7. Concurrency Control:</p><ul><li>Handling concurrent transactions</li><li>Locking mechanisms</li><li>Isolation levels</li></ul><h3>Explanation of each Topics</h3><ol><li><strong>Database Management Systems (DBMS)</strong></li></ol><p><strong>ACID properties</strong></p><ul><li><strong>Atomicity</strong>: Ensures that a series of operations in a transaction are treated as a single, indivisible unit. If any part of the transaction fails, the entire transaction is rolled back, and the database remains in a consistent state.</li><li><strong>Consistency</strong>: Guarantees that a transaction brings the database from one valid state to another. The database constraints and rules are enforced during the transaction to maintain data integrity.</li><li><strong>Isolation</strong>: Transactions are executed in isolation from each other. Even though multiple transactions may be executed concurrently, the final result should be as if transactions were executed serially. Isolation prevents interference between concurrent transactions.</li><li><strong>Durability</strong>: Once a transaction is committed, its effects are permanent. The changes made by the transaction are stored in a durable medium (like disk storage), ensuring that the data survives system failures.</li></ul><p>Databases are classified based on the two CAP characteristics they support:</p><ul><li><strong>CP database</strong>: A CP database delivers consistency and partition tolerance at the expense of availability. When a <strong>partition</strong> occurs between any two nodes, the system has to shut down the non-consistent node (i.e., make it unavailable) until the partition is resolved.</li><li><strong>AP database</strong>: An AP database delivers availability and partition tolerance at the expense of consistency. When a partition occurs, all nodes remain available but those at the wrong end of a partition might return an older version of data than others. (When the partition is resolved, the AP databases typically resync the nodes to repair all inconsistencies in the system.)</li><li><strong>CA database</strong>: A CA database delivers consistency and availability across all nodes. It can’t do this if there is a partition between any two nodes in the system, however, and therefore can’t deliver fault tolerance.</li></ul><p><strong>PostgreSQL</strong> is typically considered a CP system in CAP terms, as it prioritizes consistency and partition tolerance over availability during network partitions. However, the level of partition tolerance and the specific trade-offs can vary based on the configuration and replication strategy chosen for the PostgreSQL deployment.</p><p>Different approaches to follow while scaling a DB in distributed environment:</p><ol><li><strong>Consistency Levels</strong>:<br>PostgreSQL allows you to configure the consistency level for replication. For example, you might configure synchronous replication for critical data and use asynchronous replication for less critical data. This way, you can balance consistency and performance based on the needs of different parts of your application.</li><li><strong>Partial Synchronous Replication</strong>:<br>Instead of making the entire system synchronous, you can selectively apply synchronous replication to critical transactions. This allows you to ensure consistency for high-priority data while maintaining better performance for less critical data with asynchronous replication.</li><li><strong>Quorum-Based Systems</strong>:<br>Some clustering solutions allow you to configure a quorum, ensuring that a write is considered successful only when a majority of nodes agree on the data. This approach provides a balance between consistency and availability. During a network partition, the system can still maintain consistency by requiring a majority vote.</li><li><strong>Read Replicas</strong>:<br>Utilize read replicas to serve read traffic. While writes might be synchronous or asynchronous to ensure consistency, reads can be distributed across read replicas, providing improved read performance and reducing the load on the primary node.</li><li><strong>Multi-Master Replication</strong>:<br>Consider a multi-master replication setup where multiple nodes can accept writes independently. This can enhance write scalability and availability but may introduce the need for conflict resolution mechanisms to handle conflicting updates.</li><li><strong>Active-Active Architecture</strong>:<br>Deploy an active-active architecture with multiple data centers. Each data center can operate independently, and writes can be distributed to different nodes based on geographical location or other criteria. This allows you to achieve high availability and distribute the write load.</li><li><strong>Caching Mechanisms</strong>:<br>Employ caching mechanisms to reduce the impact of slow write operations. Cache frequently read data, reducing the need to fetch data from the database for every read request.</li></ol><p><strong>Isolation Levels in Postgres</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=214476c366a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>