代码改变世界

随笔档案-2019年11月

[LeetCode] 695. Max Area of Island_Medium tag: DFS/BFS

2019-11-24 00:07 by Johnson_强生仔仔, 230 阅读, 收藏, 编辑
摘要: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文

[LeetCode] 701. Insert into a Binary Search Tree_Medium_tag: Binary Search Tree

2019-11-17 03:46 by Johnson_强生仔仔, 195 阅读, 收藏, 编辑
摘要: Given the root node of a binary search tree (BST) and a value to be inserted into the tree, insert the value into the BST. Return the root node of the 阅读全文

[LeetCode] 700. Search in a Binary Search Treer_Easy_tag: Binary Search Tree

2019-11-17 01:01 by Johnson_强生仔仔, 172 阅读, 收藏, 编辑
摘要: Given the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node's value equals the given value. Retu 阅读全文

[LeetCode] 173. Binary Search Tree Iterator_Medium_tag: Binary Search Tree

2019-11-17 00:47 by Johnson_强生仔仔, 176 阅读, 收藏, 编辑
摘要: mplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the ne 阅读全文
点击右上角即可分享
微信分享提示