Author name: Admin

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).

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

Scroll to Top