Saurav Maheshwarixauravww.hashnode.dev·Sep 11, 2024Efficient Binary Search Methods for 2D MatricesProblem Statement Given a matrix where: Integers in each row are sorted from left to right. The first integer of each row is greater than the last integer of the previous row. We need to determine whether a target integer exists in this matrix. Y...34 readsData Structures and AlgorithmsDSA
Saurav Maheshwarixauravww.hashnode.dev·Sep 10, 2024Step-by-Step Guide to Counting Sort: Solving the Sort Colors ProblemSort Colors (LeetCode Problem #75). The challenge requires us to sort an array of integers representing the colors red, white, and blue. Red is represented by 0, white by 1, and blue by 2. Problem Statement We are given an array nums where each eleme...Data Structures and Algorithmsleetcode-medium