👋 Welcome to my Signature, a space between logic and curiosity. I’m a Software Development Engineer who loves turning ideas into systems that work beautifully. This space captures the process: the bugs, breakthroughs, and “aha” moments that keep me building.
Signature of Prashant Basnet
Our newsfeed was taking 4 seconds to load a feed. We added a cache. Now it takes 40 milliseconds.Here's what happened.The ProblemWe ran a load test with just 50
This thread is about auto Generating Semantic role based access control middleware using Metaprogramming.Metaprogramming is code that writes or manipulate
We cut our API latency by 67% and boosted throughput by 31%. We didn't change a single line of business logic. We didn't upgrade our servers. We fixed one stupi
🧱 1. Basic Functionfunction feature(){ return "hi" } console.log(feature()) => "hi" Everything here runs top to bottom, line by line, without interrup
When a project starts, life is simple. You know how things are wired, and adding a new feature feels effortless. But as the system grows, that mental model coll
First thing first what's difference between Design Principles vs Design Patterns?The Why?Design Principles are broad guidelines or philosophies for writing good
The Situation & Challenge:At Blueflite, drone operations platform serves multiple organizations with straightforward roles:Operators : Plan and execute ope
A transformation sequence from word beginWord to word endWord using a dictionary wordList is a sequence of words be
Many struggle with backtracking because they confuse two fundamental patterns i.e Sequential Decision Making and Choice Generation. The Conversion Funnel: From
🎯 The Real Question: How do I train my brain to see patterns?here's the actual thinking process that happens in senior developers' minds:📖 STEP 1: R
1/ Why System Design? I realized that while DSA builds problem-solving skills, System Design teaches how real-world software works:ScalabilityReliabilityPerfor
Publish-Subscribe is a messaging pattern where:Publishers send messages without knowing who receives them.Subscribers listen without kn
If you’ve ever built a search bar or input form that sends API calls, you’ve probably heard of debounce. Or maybe you’ve created a backend API then you've proba
A sort that return a specific order of the vertex of a given a graph as long as the graph satisfies certain condition. This is a simple algorithm to learn.First
All communication in distributed systems is based on explicit message exchange (sending and receiving messages).When process P wants to communicate with process
Arrays are where we start as devs. But what if I told you arrays secretly stack superpowers?Let's go beginner → expert: mastering arrays, stacks, monotonic stac
You are given an integer array nums of size n containing each element from 0 to n - 1 (inclusive). Each of the
🧠 Why Learn This?Matrix rotation isn't just a coding interview favorite It's used in AI, ML, and image processing to manipulate data efficiently.Think:Rotating
You are given an integer array nums. The range of a subarray of nums is the difference between the largest and smallest element in the
🔁 Problem Restatement (in simpler terms)You are given:A directed graph with n nodes.Each node i has a color, colors[i] ∈ {a-z}.Each path from one node to anoth
1️⃣ Understanding the ProblemThe Decode String problem asks us to decode a string like 3[a2[c]] into accaccaccFormat: k[encoded_st
The Problem:Given an integer array nums, you need to find one continuous subarray such that if you only sort this subarray in non-decreasing orde
🐇 What is RabbitMQ?In real world systems, services fail, crash, restart, or scale dynamically. You can't afford tight coupling between them. RabbitMQ ensures n
🌍 The Why?Event Timeline Visibility:Think of mountains as tasks, events, or ads that want to be seen. Only those not completely covered by others are visible.U
Chapter 1: The Mysterious SlowdownAlex, a junior engineer at a fast-paced AI startup, was proud of their latest code. It processed massive datasets for a new re
Once upon a time, in a village of coders, there lived a gardener named Prashant. He had two ways of planting flowers in his garden Greedy and Non
🧠 Why Are You Learning This?The minimum-weight arborescence (MWA) problem is a fundamental problem in graph theory with applications in:Network desig
Let me walk you through the different variations of the LCA problem and how to solve each one with slight modifications to the core algorithm.1. Basic LCA Probl
Greedy algorithms:The class of algorithms that make locally optimal choices at each step with the hope that these choices will lead to a globally optimal soluti
You are given a non-negative integer array nums. In one operation, you must:Choose a positive integer x such that x is less than or equ
1. What Are We Talking About?The 132 pattern is a problem where we need to find a subsequence of three numbers in an array (nums[i], nums[j],&nbs
Situation:You are given a sorted array of integers where every element appears exactly twice, except for one element that appears only once.
In the world of computer science and mathematics, some problems are deceptively simple to describe but incredibly challenging to solve.One such problem is the&n
Greedy algorithm only applies to the optimization problem.Greedy algorithm makes the decision at every point choosing the local minimum or maximum depending on
Imagine this: You’re in a coding interview at your dream company. The interviewer slides you a problem about scheduling meetings or merging overlapping interval
If you stack several restricted Boltzmann machine on the top of each other then we form a deep belief networkInput layers -> suplied to 1st RBM -> inputs
In this thread we will see how a single dynamic programming (DP) approach can be adapted to solve multiple seemingly different problems. By understand
A Singleton is a design pattern that ensures a class has only one instance (object) throughout the entire application and provides a global point to access it.L
Bayes' Rule:A fundamental concept in probability theory. It allows us to update our belief about an event based on new evidence.probability of an event A, given
Imagine you're building an app that needs to check if a number exists in a dataset of a million numbers. You have two options:1. 📝 Simple Array Search: &n
Let's first understand why is this question and it's solution significant to us:The Why??Algorithmic Pattern RecognitionIt's a gateway to understanding Dijkstra
Imagine you're building a social network, and you need to create a test environment that perfectly mirrors your production network - every user, every connectio
Here's a standard Boltzmann Machines:image credit:In theory it's a great problem, where reach node is connected to every other node.As we increase the number of