This solution seeks to find the perimeter of an island in a grid. The problem considers a grid where each cell represents land (1) or wat… Read More
In this solution, the aim is to find cells that can flow water to both the Pacific Ocean and the Atlantic Ocean. The problem considers a hei… Read More
Clone Graph We are given a graph represented by a collection of nodes and their neighbors. The goal is to clone this graph, creating a new graph w… Read More
Here's an explanation of the thought process behind the solution of counting the number of islands in a grid. Problem Understanding The pro… Read More
In this section, I explore the graph data structure, including its definition and properties. Understanding graphs is fundamental due to thei… Read More
A Binary Search Tree (BST) is a data structure that is used for efficient searching, insertion, and deletion of elements. It is a binary tree where e… Read More
In this solution, we write code to determine if the Binary Tree is balanced or not. For this problem, a height-balanced binary tree is d… Read More
Binary Side View Let's solve the problem of obtaining the right side view of a binary tree. To achieve that, here's a breakdown of how … Read More
This challenge aims to come up with a solution that implements an algorithm to find the sizes of rivers in a 2D matrix. Problem Given a 2D matr… Read More
Min Heap Construction A MinHeap is a binary tree-based data structure where the value of each node is less than or equal to the values of its chil… Read More
This solution seeks to find the perimeter of an island in a grid. The problem considers a grid where each cell represents land (1) or wat… Read More
ago ; 334 views In this solution, the aim is to find cells that can flow water to both the Pacific Ocean and the Atlantic Ocean. The problem considers a hei… Read More
ago ; 296 viewsClone Graph We are given a graph represented by a collection of nodes and their neighbors. The goal is to clone this graph, creating a new graph w… Read More
ago ; 279 viewsHere's an explanation of the thought process behind the solution of counting the number of islands in a grid. Problem Understanding The pro… Read More
ago ; 290 viewsIn this section, I explore the graph data structure, including its definition and properties. Understanding graphs is fundamental due to thei… Read More
ago ; 247 viewsA Binary Search Tree (BST) is a data structure that is used for efficient searching, insertion, and deletion of elements. It is a binary tree where e… Read More
ago ; 229 views In this solution, we write code to determine if the Binary Tree is balanced or not. For this problem, a height-balanced binary tree is d… Read More
ago ; 311 viewsBinary Side View Let's solve the problem of obtaining the right side view of a binary tree. To achieve that, here's a breakdown of how … Read More
ago ; 280 viewsThis challenge aims to come up with a solution that implements an algorithm to find the sizes of rivers in a 2D matrix. Problem Given a 2D matr… Read More
ago ; 267 viewsMin Heap Construction A MinHeap is a binary tree-based data structure where the value of each node is less than or equal to the values of its chil… Read More
ago ; 248 views