Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and ino ...
分类:
其他好文 时间:
2021-02-16 12:28:45
阅读次数:
0
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals ...
分类:
其他好文 时间:
2021-02-16 12:04:54
阅读次数:
0
Number of Steps to Reduce a Number to Zero (E) 题目 Given a non-negative integer num, return the number of steps to reduce it to zero. If the current nu ...
分类:
其他好文 时间:
2021-02-16 12:04:19
阅读次数:
0
Valid Anagram (E) 题目 Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" ...
分类:
其他好文 时间:
2021-02-15 12:41:17
阅读次数:
0
Copy List with Random Pointer (M) 题目 A linked list is given such that each node contains an additional random pointer which could point to any node in ...
分类:
其他好文 时间:
2021-02-15 11:52:08
阅读次数:
0
You are given a series of video clips from a sporting event that lasted T seconds. These video clips can be overlapping with each other and have varie ...
分类:
其他好文 时间:
2021-02-15 11:46:25
阅读次数:
0
Given the root of a binary tree, return the leftmost value in the last row of the tree. Example 1: Input: root = [2,1,3] Output: 1 Example 2: Input: r ...
分类:
其他好文 时间:
2021-02-10 12:54:11
阅读次数:
0
Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any position ...
分类:
其他好文 时间:
2021-02-09 12:12:28
阅读次数:
0
Simplify Path (M) 题目 Given a string path, which is an absolute path (starting with a slash '/') to a file or directory in a Unix-style file system, co ...
分类:
其他好文 时间:
2021-02-06 11:56:45
阅读次数:
0
仅供自己学习 题目: You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the foll ...
分类:
其他好文 时间:
2021-02-04 12:10:58
阅读次数:
0