由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 这题有啥好方法吗?
相关主题
这题怎么做?[合集] 今天面试惨败,分享面经
find top K most occurring words in streaming data 这题怎么做比较好问一道老题
amazon phone interview这题怎么做?
请教leetcode上的count and sayan interview question, find mode in a rolling window along data sequence
湾区2012-2013,个人面筋总结这题也可以DP 解吧?
终于理解当初面我的某同胞了求OJ container with most water O(n)解法
被基础题搞挂了这题怎么做?
G家电面结束,必挂。附面经。storm8 online code给跪了
相关话题的讨论汇总
话题: second话题: find话题: array话题: given话题: integers
进入JobHunting版参与讨论
1 (共1页)
a*******y
发帖数: 1040
1
Given an array of integer as an input. write a function to return the second
most occurring element in the array
除了hash和sort
f*******t
发帖数: 7549
2
暴力扫描呗
a*******y
发帖数: 1040
3
靠,你要是这样回答估计得当场跪
d*******u
发帖数: 186
4
if the integers are in a certain range, we can use counting table, then find
the second minimum. otherwise hashtable to store the frequency, then find
the second max.

second

【在 a*******y 的大作中提到】
: Given an array of integer as an input. write a function to return the second
: most occurring element in the array
: 除了hash和sort

d*******u
发帖数: 186
5
if the integers are in a certain range, we can use counting table, then find
the second minimum. otherwise hashtable to store the frequency, then find
the second max.

second

【在 a*******y 的大作中提到】
: Given an array of integer as an input. write a function to return the second
: most occurring element in the array
: 除了hash和sort

I*****8
发帖数: 37
6
是find second maximum ? 这种思路应该是什么计数排序的一步把,也算一类sorting
把,不用sort, 和 hash?还带这样的?

find

【在 d*******u 的大作中提到】
: if the integers are in a certain range, we can use counting table, then find
: the second minimum. otherwise hashtable to store the frequency, then find
: the second max.
:
: second

1 (共1页)
进入JobHunting版参与讨论
相关主题
storm8 online code给跪了湾区2012-2013,个人面筋总结
回馈本版,发个cisco面经终于理解当初面我的某同胞了
发一道G家的onsite题及教训,顺便求linkedin和twitter内推被基础题搞挂了
这题应该用bucket sort还是counting sortG家电面结束,必挂。附面经。
这题怎么做?[合集] 今天面试惨败,分享面经
find top K most occurring words in streaming data 这题怎么做比较好问一道老题
amazon phone interview这题怎么做?
请教leetcode上的count and sayan interview question, find mode in a rolling window along data sequence
相关话题的讨论汇总
话题: second话题: find话题: array话题: given话题: integers