摘要: LeetCode 0417. Pacific Atlantic Water Flow太平洋大西洋水流问题【Medium】【Python】【DFS】 Problem "LeetCode" Given an matrix of non negative integers representing the 阅读全文
posted @ 2020-02-29 18:47 Wonz 阅读(200) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0130. Surrounded Regions被围绕的区域【Medium】【Python】【DFS】 Problem "LeetCode" Given a 2D board containing and ( the letter O ), capture all regions 阅读全文
posted @ 2020-02-29 15:32 Wonz 阅读(186) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0547. Friend Circles朋友圈【Medium】【Python】【DFS】 Problem "LeetCode" There are N students in a class. Some of them are friends, while some are not 阅读全文
posted @ 2020-02-29 14:40 Wonz 阅读(241) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0200. Number of Islands岛屿数量【Medium】【Python】【DFS】 Problem "LeetCode" Given a 2d grid map of s (land) and s (water), count the number of island 阅读全文
posted @ 2020-02-28 23:27 Wonz 阅读(242) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0695. Max Area of Island【Medium】【Python】【DFS】 Problem "LeetCode" Given a non empty 2D array of 0's and 1's, an island is a group of 's (repre 阅读全文
posted @ 2020-02-28 22:52 Wonz 阅读(110) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0127. Word Ladder单词接龙【Medium】【Python】【BFS】 Problem "LeetCode" Given two words ( beginWord and endWord ), and a dictionary's word list, find t 阅读全文
posted @ 2020-02-28 22:09 Wonz 阅读(176) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0279. Perfect Squares完全平方数【Medium】【Python】【BFS】 Problem "LeetCode" Given a positive integer n , find the least number of perfect square numbe 阅读全文
posted @ 2020-02-26 23:01 Wonz 阅读(309) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1091. Shortest Path in Binary Matrix二进制矩阵中的最短路径【Medium】【Python】【BFS】 Problem "LeetCode" In an N by N square grid, each cell is either empty ( 阅读全文
posted @ 2020-02-26 21:40 Wonz 阅读(446) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0095. Unique Binary Search Trees II不同的二叉搜索树 II【Medium】【Python】【分治】【DFS】 Problem "LeetCode" Given an integer n , generate all structurally uni 阅读全文
posted @ 2020-02-26 15:32 Wonz 阅读(109) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0241. Different Ways to Add Parentheses为运算表达式设计优先级【Medium】【Python】【分治】 Problem "LeetCode" Given a string of numbers and operators, return all 阅读全文
posted @ 2020-02-25 14:20 Wonz 阅读(135) 评论(0) 推荐(0) 编辑