Description For the given binary tree, return a deep copy of it. Description Description For the given binary tree, return a deep copy of it. For the ...
分类:
编程语言 时间:
2018-07-14 14:42:00
阅读次数:
134
Description Implement an algorithm to delete a node in the middle of a singly linked list, given only access to that node. Description Description Imp ...
分类:
编程语言 时间:
2018-07-14 13:11:45
阅读次数:
133
Description Partition an integers array into odd number first and even number second. Description Description Partition an integers array into odd num ...
分类:
编程语言 时间:
2018-07-14 13:02:09
阅读次数:
115
Description Count how many 1 in binary representation of a 32-bit integer. Description Description Count how many 1 in binary representation of a 32-b ...
分类:
编程语言 时间:
2018-07-14 11:56:03
阅读次数:
133
原题网址:https://www.lintcode.com/problem/longest-common-substring/description 描述 给出两个字符串,找到最长公共子串,并返回其长度。 描述 描述 给出两个字符串,找到最长公共子串,并返回其长度。 给出两个字符串,找到最长公共子串 ...
分类:
其他好文 时间:
2018-07-13 22:17:37
阅读次数:
146
原题网址:https://www.lintcode.com/problem/longest-common-prefix/description 描述 给k个字符串,求出他们的最长公共前缀(LCP) 描述 描述 给k个字符串,求出他们的最长公共前缀(LCP) 给k个字符串,求出他们的最长公共前缀(LC ...
分类:
其他好文 时间:
2018-07-13 00:00:42
阅读次数:
187
Description You have two very large binary trees: T1, with millions of nodes, and T2, with hundreds of nodes. Create an algorithm to decide if T2 is a ...
分类:
编程语言 时间:
2018-07-12 18:14:07
阅读次数:
157
原题网址:https://www.lintcode.com/problem/longest-increasing-subsequence/description 描述 给定一个整数序列,找到最长上升子序列(LIS),返回LIS的长度。 描述 描述 给定一个整数序列,找到最长上升子序列(LIS),返回 ...
分类:
其他好文 时间:
2018-07-09 17:52:55
阅读次数:
177
原题网址:https://www.lintcode.com/problem/find-peak-element/description 描述 你给出一个整数数组(size为n),其具有以下特点: 相邻位置的数字是不同的 A[0] < A[1] 并且 A[n - 2] > A[n - 1] 假定P是峰 ...
分类:
其他好文 时间:
2018-07-08 18:07:23
阅读次数:
162
原题网址:https://www.lintcode.com/problem/first-bad-version/description 描述 代码库的版本号是从 1 到 n 的整数。某一天,有人提交了错误版本的代码,因此造成自身及之后版本的代码在单元测试中均出错。请找出第一个错误的版本号。 你可以通 ...
分类:
其他好文 时间:
2018-07-06 17:42:43
阅读次数:
176