1020 Tree Traversals (25分) Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequen ...
分类:
其他好文 时间:
2020-01-20 20:53:02
阅读次数:
76
题目如下: Given a string s. Return all the words vertically in the same order in which they appear in s.Words are returned as a list of strings, complete ...
分类:
其他好文 时间:
2020-01-20 15:11:48
阅读次数:
121
题目如下: Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit (6 becomes 9 ...
分类:
其他好文 时间:
2020-01-20 14:43:03
阅读次数:
69
本文始发于个人公众号: TechFlow 这是LeetCode的第10题,题目关于字符串的正则匹配,我们先来看题目相关信息: Link "Regular Expression Matching" Difficulty Hard Description Given an input string ( ...
分类:
其他好文 时间:
2020-01-20 09:39:04
阅读次数:
80
You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose o ...
分类:
其他好文 时间:
2020-01-20 09:38:14
阅读次数:
92
Given three integers A, B and C in [?], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives the positive nu ...
分类:
其他好文 时间:
2020-01-20 09:30:50
阅读次数:
92
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee ...
分类:
其他好文 时间:
2020-01-20 00:24:28
阅读次数:
86
Given an array nums, we call (i, j) an important reverse pair if i < j and nums[i] > 2*nums[j]. You need to return the number of important reverse pai ...
分类:
其他好文 时间:
2020-01-19 22:19:33
阅读次数:
77
B. Divisors of Two Integers Recently you have received two positive integer numbers xx and y. You forgot them, but you remembered a shuffled list cont ...
分类:
其他好文 时间:
2020-01-18 14:25:38
阅读次数:
98
A. Two distinct points You are given two segments l1;r1 and l2;r2 on the xx-axis. It is guaranteed that l1<r1l1<r1 and l2<r2l2<r2. Segments may inters ...
分类:
其他好文 时间:
2020-01-18 13:03:13
阅读次数:
98