由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问一A家题目
相关主题
Facebook interview 面经请教一道题
nlogn for longest increasing subsequence这个怎么弄?
career cup book v4 9.7 题Longest Consecutive Sequence 问题释疑
longest increasing subsequence O(NlogN)算法中数组 P 是否必find all longest increasing subsequence 谁有源码?
g公司面试问Longest increasing subsequence,意义在哪里?来道难一点的题
Longest Increasing Subsequence用binary还能输出结果数组吗?问个老问题 Longest palindrome in a string
longest increase subsequencea problem from leetcode: high efficiency algorithm for combinations problem
Longest Increasing Subsequence要掌握nlogn的解法吗?Google onsite问题
相关话题的讨论汇总
话题: longest话题: algorithm话题: array话题: given
进入JobHunting版参与讨论
1 (共1页)
p*******o
发帖数: 3564
1
www.careercup.com/question?id=11978701f
Given an array of integers, find the longest subsequence of elements which
monotonically increases. for ex. array = {1 4 8 2 5 7 3 4 6}, the longest
subsequence = {1 2 3 4 6}
I have explained him about O(N^2) with O(1) space algorithm but the
interview is expecting O(N log N). Could any one help me explaining the
algorithm in detail ?
q******8
发帖数: 848
2
我觉得这么问确实挺没劲的,没见过这个nlogn解法的,当场想出来的,岂不是高德纳
了。
b***e
发帖数: 383
3
http://www.felix021.com/blog/read.php?1587
这是我见过的写得最清楚的一篇文章。
f*******t
发帖数: 7549
4
这个算法课都学过的吧,其实挺基本的,当然我也不会……
n*******w
发帖数: 687
5
这个挺详细。
二分查找加上两个辅助数组。

【在 b***e 的大作中提到】
: http://www.felix021.com/blog/read.php?1587
: 这是我见过的写得最清楚的一篇文章。

d*********i
发帖数: 628
6
DP吧,我记得是O(nlogn)
也是算法课上面讲过...
a****h
发帖数: 126
7
这个好像有问题吧。

【在 b***e 的大作中提到】
: http://www.felix021.com/blog/read.php?1587
: 这是我见过的写得最清楚的一篇文章。

1 (共1页)
进入JobHunting版参与讨论
相关主题
Google onsite问题g公司面试问Longest increasing subsequence,意义在哪里?
Amazon Summer Intern Offer, 发面经Longest Increasing Subsequence用binary还能输出结果数组吗?
one amazon interview problemlongest increase subsequence
最长递增子array的算法Longest Increasing Subsequence要掌握nlogn的解法吗?
Facebook interview 面经请教一道题
nlogn for longest increasing subsequence这个怎么弄?
career cup book v4 9.7 题Longest Consecutive Sequence 问题释疑
longest increasing subsequence O(NlogN)算法中数组 P 是否必find all longest increasing subsequence 谁有源码?
相关话题的讨论汇总
话题: longest话题: algorithm话题: array话题: given