原文:Leetcode: Number of Islands II && Summary of Union Find

Union Find Princeton s lecture note on Union FindinAlgorithms and Data StructuresIt is a well organized note with clear illustration describing from the naive QuickFind to the one with Weighting and ...

2015-12-30 08:09 0 3287 推薦指數:

查看詳情

[LeetCode] Number of Islands II

Problem Description: A 2d grid map of m rows and n columns is initially filled with water. We may p ...

Sun Nov 15 04:55:00 CST 2015 0 6974
[LintCode] Number of Islands II

Number of Islands II Given a n,m which means the row and column of the 2D matrix and an array of pair A( size k). Originally, the 2D matrix is all ...

Wed Jul 29 03:24:00 CST 2015 0 2970
[LeetCode] Number of Islands

Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting ...

Wed Apr 08 20:37:00 CST 2015 0 2918
Leetcode: Number of Islands

DFS的Flood Fill方法, 不使用額外visited數組,但是用‘1’變成‘2’表示visited的方法 復雜度 時間 O(NM) 空間 O(max(N,M)) 遞歸棧空間 Union Find: (Quick Union ...

Sat Apr 11 13:20:00 CST 2015 0 1999
305. Number of Islands II

題目: A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand ...

Wed Dec 16 20:15:00 CST 2015 0 2229
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM