标签: leetcode
-
leetcode393. UTF-8 Validation
如果包含两个或两个以上字节,则起始字节以n个1和1个0开头,例如,如果该UTF8字符包含两个字节,则第一个字节…
-
LeetCode 310. Minimum Height Trees
For an undirected graph with tree characteristics, we c…
-
117. Populating Next Right Pointers in Each Node II
Given a binary treestruct Node { int val; Node *left; N…
-
116. Populating Next Right Pointers in Each Node
You are given a perfect binary tree where all leaves ar…
-
131. Palindrome Partitioning
Given a string s, partition s such that every substring…
-
leetcode398. Random Pick Index
设计一个数据结构,使得从该数据结构中查询一个数字时,能够以等概率返回该数字所在的任何下标。额外的要求是只要占用…
-
129. Sum Root to Leaf Numbers
Given a binary tree containing digits from 0-9 only, ea…
-
120. Triangle
Given a triangle, find the minimum path sum from top to…
-
130. Surrounded Regions
Given a 2D board containing ‘X’ and ‘O’ (the letter O),…
-
138. Copy List with Random Pointer
A linked list is given such that each node contains an …