Author name: Admin

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,

Scroll to Top