Sswayanprabha2d ago · 7 min readStop Thinking Binary Search Is Only for Searching 🔍It’s not an algorithm to memorize. Most of us learn binary search like this: “Sorted array. Find the target. Done.” But the real skill is spotting when it fits, even when the problem has no sorted arrdsadiscuss.hashnode.dev
FFortunatus OlorunsolaAug 9 · 10 min readSolving 1920: how to store 2 numbers in 1Check out the problem here. The first and obvious solution to this problem is even in the question: ans[i] = nums[nums[i]]. You loop over the nums array and in each iteration, you just put whatever nufortunatus-notes.hashnode.dev
RRohit KumharJul 23 · 38 min readMaster the Two Pointers Pattern in Python (Part 1): Two Sum, Squares of Sorted Array & Remove DuplicatesIntroduction If you've spent time solving coding interview problems, you've probably noticed a common pattern: many array problems seem to invite a nested loop solution. While that approach works, it 1tech-rohit.hashnode.dev
GGunjan C.Jul 17 · 4 min readLeetCode #01 | 2390. Removing Stars From a String | Stack Approach | Java, C & Python👋 Introduction Welcome to LeetCode Visualized! In this series, we'll solve LeetCode problems using visual explanations, intuitive walkthroughs, and clean implementations in Java, Python, and C. Today1leetcodevisualized.hashnode.dev
AArpit TiwariJul 8 · 6 min readLeetCode Is Dead: What AI Actually Killed and What It Didn't"LeetCode is dead. Nobody writes code line by line anymore." I’ve been going through a lot about this post ever since it went viral. There’s an entire thread on Reddit that’s hilariously jumbled up wi1Marpittiwari.hashnode.dev
AAlex MateoMay 10 · 11 min readGraph Algorithms for Coding Interviews: When to Use BFS, DFS, or DijkstraGraphs are the most feared topic in coding interviews — not because they're impossible, but because most people learn the algorithms in isolation without understanding when to use each one. This guidealexmateo.hashnode.dev
FFelipe CastilloApr 4 · 9 min readHow to Solve Your First LeetCode Problem: A Beginner's GuideHow to Solve Your First LeetCode Problem: A Beginner's Guide LeetCode has become the favorite playground for developers preparing for technical interviews. With over 3,500 problems ranging from "easy"opencodex.hashnode.dev
HhimanshuFeb 28 · 3 min readDay 20 - Search in Rotated Sorted ArrayQuestion You are given an array of length n which was originally sorted in ascending order. It has now been rotated between 1 and n times. For example, the array nums = [1,2,3,4,5,6] might become: [3blogs-himanshu.hashnode.dev
HhimanshuFeb 23 · 3 min readDay 19 - Find Minimum in Rotated Sorted ArrayQuestion You are given an array of length n which was originally sorted in ascending order. It has now been rotated between 1 and n times. For example, the array nums = [1,2,3,4,5,6] might become: [3blogs-himanshu.hashnode.dev
HhimanshuFeb 22 · 3 min readDay 18 - Koko Eating BananasQuestion You are given an integer array piles where piles[i] is the number of bananas in the ith pile. You are also given an integer h, which represents the number of hours you have to eat all the banblogs-himanshu.hashnode.dev