## Number of Distinct Islands

Problem Statement: Given a boolean 2D matrix grid of size N x M. You have to find the number of

## Bipartite Graph | BFS Implementation

Problem Statement: Given an adjacency list of a graph adj of V no. of vertices having 0 based index. Check

## Bipartite Graph | DFS Implementation

Problem Statement: Given an adjacency list of a graph adj of V no. of vertices having 0 based index. Check

## Number of Enclaves

Problem Statement: You are given an N x M binary matrix grid, where 0 represents a sea cell and 1

## Surrounded Regions | Replace O’s with X’s

Problem Statement: Given a matrix mat of size N x M where every element is either ‘O’ or ‘X’. Replace

## Distance of Nearest Cell having 1

Problem Statement: Given a binary grid of N*M. Find the distance of the nearest 1 in the grid for each

## Detect Cycle in an Undirected Graph (using DFS)

Problem Statement: Given an undirected graph with V vertices and E edges, check whether it contains any cycle or not.

## Detect Cycle in an Undirected Graph (using BFS)

Problem Statement: Given an undirected graph with V vertices and E edges, check whether it contains any cycle or not.