gfg-potd

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

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,

Maximum Difference

gfg-potd

Given an integer array arr of integers, the task is to find the maximum absolute difference between the nearest left smaller element and the nearest right

Wildcard Pattern Matching

gfg-potd

Given two strings pattern and str which may be of different size, You have to return 1 if the wildcard pattern i.e. pattern, matches with str else return 0. All characters of

Number of pairs

gfg-potd

Given two positive integer arrays arr and brr, find the number of pairs such that xy > yx (raised to power of) where x is an element from arr and y is an

Alien Dictionary

gfg-potd

Given a sorted dictionary of an alien language having N words and k starting alphabets of standard dictionary. Find the order

Scroll to Top