Understanding Gradient Descent

Gradient Descent is one of the most important optimization methods used in machine learning and modeling. At its core, it is a systematic way for a model to improve step by step, by reducing its mistakes over time. Think of Gradient Descent like walking down a hill. This process of slowly moving down the slope—making … Read more

Neural Network Explained

, What is a Neural Network? Think of your brain as a giant web of tiny switches called neurons. These neurons are the reason we can see, think, and make decisions. They pass signals between each other and gradually learn from experience. Now, a neural network in a computer is designed to mimic this process. … Read more

Maximum water in container problem

We want to find out how much water can be held between two sticks. The heights of our sticks are: height = [1, 2, 4, 3]Indexes ( 0, 1, 2, 3) We use two pointers: one at the left end and one at the right end.Formula for water:area = min(height[left], height[right]) × (right – left) … Read more

Blind 75 Problem List

Arrays & Hashing Two Pointers Sliding Window Stack Binary Search Linked List Trees Tries Backtracking Heap / Priority Queue Graphs Dynamic Programming (1D) Dynamic Programming (2D)

From Steam to Silicon: Comparing the Industrial Revolution and America’s AI Revolution

Every era of human history has its defining transformation, a moment when society takes a giant leap forward and never looks back. In the eighteenth and nineteenth centuries, that transformation was the Industrial Revolution—a sweeping wave of technological, economic, and social change that turned Britain, and later the United States, into the workshop of the … Read more

How Insertion Sort Works?

Think about playing cards: you start with one card in your hand, then pick up cards one by one and slide each into its correct position. That’s exactly how insertion sort works. Let’s see it in action with this list: [7, 3, 5, 2, 6] Pass 1: Pick the 2nd card (Key = 3) Result:[3, … Read more

Chatgpt prompt used to format content

I usually use the below prompt to format the blog post with chatgpt. I am going to provide raw content for a blog post. Please rewrite and format it without missing any points or information. The final blog post should. Return a blog post that is ready to be published. 2.This is for generating meta … Read more

Types of searches in AI

In Artificial Intelligence, especially when designing intelligent agents, the process of finding a solution to a problem can often be framed as a search through a set of possible states. The agent starts in an initial state and aims to reach a goal state by transitioning through one or more intermediate states. There are two … Read more