ProDeveloperTutorialonAugust 30, 2026 Graph: Given a matrix, find the number of closed islands Problem Statement: You are given a 2D matrix. You need to find the number of closed islands. An closed island is an island that is completely…
ProDeveloperTutorialonAugust 30, 2026 Graph: Given a binary matrix, find the largest region of 1 Problem Statement: You are given a binary matrix, you need to find the maximum region of 1, that can be connected in 4 directions. The edges…
ProDeveloperTutorialonAugust 30, 2026 Graph: Given a dictionary and a matrix, find all the words from the dictionary found in matrix Problem Statement: You are given a dictionary[] and a character matrix. You need to find all the words from the dictionary that can be formed…
ProDeveloperTutorialonAugust 30, 2026 Graph: You are given a graph, clone the graph using deep copy Problem Statement: You are given a reference of a node in a connected undirected graph. You need to return a deep copy of the graph. Example:…
ProDeveloperTutorialonAugust 30, 2026 Graph: Given a matrix, replace ‘o’ with ‘x’, if surrounded by ‘x’ Problem Statement: You are given a matrix with either ‘x’ or ‘o’. You need to replace all ‘o’ with…
ProDeveloperTutorialonAugust 30, 2026 Graph: Get all the paths from source to destination Problem Statement: You are given a directed acyclic graph and n nodes from 0 to n-1. You need to find the number of paths from 0th node to n-1…
ProDeveloperTutorialonAugust 30, 2026 Graph: Find minimum time to rot all the oranges Problem Statement: You are given a 2D matrix, where each has 3 values. 0 represents empty cells 1 represent fresh orange 2 represent rotten…
ProDeveloperTutorialonAugust 30, 2026 Graph: Flood Fill algorithm Problem Statement: You are given an image represented in 2D array. Each integer representing pixel value of the image. You are given a…
ProDeveloperTutorialonAugust 29, 2026 Graph: Given a matrix, find the distance of nearest cell having 0 Problem Statement: You are given a binary matrix, you need to find the distance of the nearest 0 in the grid of each cell. The distance is…
ProDeveloperTutorialonAugust 29, 2026 Graph: Given a graph with source and destination, count all the possible path between two vertices Problem Statement: You are given a directed non cyclic graph, and 2 nodes having source and destination. You need to return the count of two…