Minimum Cost Path

gfg-potd

Given a square grid of size N, each cell of which contains an integer cost that represents a cost to traverse through that

Max sum path in two arrays

gfg-potd

Given two sorted arrays of distinct integers arr1 and arr2. Each array may have some elements in common with the other array. Find the maximum sum of a

140. Word Break II

leetcode-potd

Given a string s and a dictionary of strings wordDict, add spaces in s to construct a sentence where each word is a valid dictionary

2699. Modify Graph Edge Weights

leetcode-potd

You are given an undirected weighted connected graph containing n nodes labeled from 0 to n – 1, and an integer array edges where edges[i] = [ai, bi, wi] indicates that there

N-Queen Problem

gfg-potd

The n-queens puzzle is the problem of placing n queens on a (n×n) chessboard such that no two queens can attack each other.Given an integer n,

1905. Count Sub Islands

leetcode-potd

You are given two m x n binary matrices grid1 and grid2 containing only 0‘s (representing water) and 1‘s (representing land). An island is a group of 1‘s connected 4-directionally (horizontal or vertical).

Scroll to Top