摘要: 原题链接在这里:https://leetcode.com/problems/number-of-enclaves/ 题目: Given a 2D array A, each cell is 0 (representing sea) or 1 (representing land) A move co 阅读全文
posted @ 2019-11-27 12:55 Dylan_Java_NYC 阅读(316) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/lonely-pixel-i/ 题目: Given a picture consisting of black and white pixels, find the number of black lonely pixels 阅读全文
posted @ 2019-11-27 12:30 Dylan_Java_NYC 阅读(301) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/shortest-path-in-binary-matrix/ 题目: In an N by N square grid, each cell is either empty (0) or blocked (1). A cl 阅读全文
posted @ 2019-11-27 11:24 Dylan_Java_NYC 阅读(856) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/n-ary-tree-postorder-traversal/ 题目: Given an n-ary tree, return the postorder traversal of its nodes' values. Na 阅读全文
posted @ 2019-11-27 10:49 Dylan_Java_NYC 阅读(363) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/n-ary-tree-preorder-traversal/ 题目: Given an n-ary tree, return the preorder traversal of its nodes' values. Nary 阅读全文
posted @ 2019-11-27 10:22 Dylan_Java_NYC 阅读(367) 评论(0) 推荐(0)