Binary
-
记录 Post man 上传 binary, 用 Python 的 requests 上传
用 Post man 的 Code snipet, 可以选不同编程语言的实现代码
-
Review binary search
33. 搜索旋转排序数组 – 力扣(LeetCode)81. 搜索旋转排序数组 II – 力扣(LeetCode)153. 寻找旋转排序数组中的最小值 &#…
-
110.balanced-binary-tree 平衡二叉树
获取左右子树的高度,如果左右子树高度差小于等于1,则判断左右子树的左右子树,如此递归下去。 class Solution { public: int getDp(TreeNode …
-
[Oracle] LeetCode 696 Count Binary Substrings
Given a binary string s, return the number of non-empty substrings that have the same numb…
-
[Google] LeetCode 2096 Step-By-Step Directions From a Binary Tree Node to Another
You are given the root of a binary tree with n nodes. Each node is uniquely assigned a val…
-
[Google] LeetCode 366 Find Leaves of Binary Tree
Given the root of a binary tree, collect a tree’s nodes as if you were doing this: C…
-
LeetCode 103 Binary Tree Zigzag Level Order Traversal 双端队列 Deque
Given the root of a binary tree, return the zigzag level order traversal of its nodes̵…
-
[LeetCode] 919. Complete Binary Tree Inserter
A complete binary tree is a binary tree in which every level, except possibly the last, is…
-
LeetCode 226 Invert Binary Tree DFS
Given the root of a binary tree, invert the tree, and return its root. Solution: 直接使用 /(DF…
-
[Google] LeetCode 366 Find Leaves of Binary Tree 思维+DFS
Given the root of a binary tree, collect a tree’s nodes as if you were doing this: C…