leetcode-potd

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 […]

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