LintCode 897 · Island City - Facebook Interview Question
If you find this video helpful, please 'Like' or 'Subscribe'. This is really helpful for the channel and also motivates me to do more of such good videos. LintCode 897 · Island City - Facebook Interview Question Solved By DFS Link To The Problem: https://www.lintcode.com/problem/897/ Problem Description: Given a matrix of size n x m, the elements in the matrix are 0、1、2. 0 for the sea, 1 for the island, and 2 for the city on the island(You can assume that 2 is built on 1, ie 2 also represents the island). If two 1 are adjacent, then these two 1 belong to the same island. Find the number of islands with at least one city. Youtube channel: https://www.youtube.com/channel/UCrvpRH4lSRjp2T6btl0lf4w https://github.com/maksrane100/leetcode_solutions #coding #softwareengineer #Leetcode #Algorithm #DataStructure #Java #programmer #tech #software #codinglife #Preparation #interview #programminglife #programmingisfun #dfs #islandcity #leetcode #codeforces #algorithm #algorithms #datastructure #datastructuresandalgorithms
Download
0 formatsNo download links available.