Ashish Pratap Singh
@ashishps_1
Founder @algomaster_io Prev SDE-2 @Amazon 220k+ @LinkedIn, 200k+ @YouTube, 60k+ stars @GitHub. Write about coding, dsa, system design and interviews.
LeetCode was HARD until I Learned these 15 Patterns: 1. Prefix Sum 2. Two Pointers 3. Sliding Window 4. Fast & Slow Pointers 5. LinkedList In-place Reversal 6. Monotonic Stack 7. Top ‘K’ Elements 8. Overlapping Intervals 9. Modified Binary Search 10. Binary Tree Traversal 11.…

7 must-know runtime complexities for coding interviews: 1. 𝐎(1) - 𝐂𝐨𝐧𝐬𝐭𝐚𝐧𝐭 𝐭𝐢𝐦𝐞 - The runtime doesn't change regardless of the input size. - Example: Accessing an element in an array by its index. 2. 𝐎(𝐥𝐨𝐠 𝐧) - 𝐋𝐨𝐠𝐚𝐫𝐢𝐭𝐡𝐦𝐢𝐜 𝐭𝐢𝐦𝐞 - The runtime…

10 Must-Know Database Types for System Design Interviews: 1) 𝐑𝐞𝐥𝐚𝐭𝐢𝐨𝐧𝐚𝐥: - Stores data in tables with predefined schemas and relationships. - Useful for applications requiring structured data, complex queries and ACID transactions. - Examples: PostgreSQL, MySQL 2)…

Top 20 Git Commands You Should Know: 1. 𝐠𝐢𝐭 𝐢𝐧𝐢𝐭: Initializes a new Git repository - Example: git init my-new-project 2. 𝐠𝐢𝐭 𝐜𝐨𝐧𝐟𝐢𝐠: Set git configuration values like username/email - Example: git config --global user .name "user123" 3. 𝐠𝐢𝐭 𝐜𝐥𝐨𝐧𝐞:…

Top 10 Database Scaling Techniques You Should Know: 1. 𝐈𝐧𝐝𝐞𝐱𝐢𝐧𝐠: Create indexes on frequently queried columns to speed up data retrieval. 2. 𝐕𝐞𝐫𝐭𝐢𝐜𝐚𝐥 𝐒𝐜𝐚𝐥𝐢𝐧𝐠: Upgrade your database server by adding more CPU, RAM, or storage to handle increased load. 3.…

Top 7 API Gateway Use Cases You Should Know: 1. 𝐀𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧 & 𝐀𝐮𝐭𝐡𝐨𝐫𝐢𝐳𝐚𝐭𝐢𝐨𝐧: Centralize user auth, validate JWTs or API keys, and enforce RBAC, offloading security logic from individual services. 2. 𝐑𝐞𝐪𝐮𝐞𝐬𝐭 𝐑𝐨𝐮𝐭𝐢𝐧𝐠: Route incoming…

12 Must-Know Data Structures for Coding Interviews: 1. 𝐀𝐫𝐫𝐚𝐲𝐬 - A fixed-size collection of elements stored in contiguous memory. - Provides O(1) access based on index. 2. 𝐌𝐚𝐭𝐫𝐢𝐱 (2𝐃 𝐀𝐫𝐫𝐚𝐲) - A multi-dimensional array used for representing grids, graphs, and…

If you are new to System Design, learn these 30 concepts to build a solid foundation: 1. Client-Server Architecture 2. IP Address 3. DNS 4. Proxy / Reverse Proxy 5. Latency 6. HTTP/HTTPS 7. APIs 8. Rest API 9. GraphQL 10. Databases 11. SQL vs NoSQL 12. Vertical Scaling 13.…

My newsletter recently crossed 90,000 subscribers. Here are the 10 most-read articles: 1. LeetCode was HARD until I Learned these 15 Patterns: blog.algomaster.io/p/15-leetcode-… 2. How I Mastered Data Structures and Algorithms: blog.algomaster.io/p/how-i-master… 3. What is Scalability:…

I Created a GitHub Repository to Learn AI Engineering It contains the best free courses, articles, tutorials, and videos to learn: - Mathematical Foundations - AI & ML Fundamentals - Deep Learning and Specializations - Generative AI - Large Language Models (LLMs) - Prompt…
