由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - key 相同的话怎么搞 direct access table 阿?
相关主题
Google onsite 5天后被拒了问个弱智问题,关于bst
One interview question (A)google 一题
问一道题find, insert, delete, getRandom in O(1)
Zillow screen 面经,兼打听工资careercup一道amazon的面试题
CLRS 这本书要看哪几章?一个set,有add(i), del(i), count(i), size。写random()。
Potential error in the algorithm RB-INSERT-FIXUP in CLRS (p.316, 3rd ed.)?最近面YOUTUBE的挺多啊,分享自己的电面面经兼求面过类似职位
最近连着几个面试都是印度人。今天G家电面的一道题
问一个狗狗的OnSite题哪位大牛能给贴个tri-nary search tree的delete的code?
相关话题的讨论汇总
话题: delete话题: table话题: direct话题: key话题: chaining
进入JobHunting版参与讨论
1 (共1页)
j*****y
发帖数: 1071
1
clrs 上 11.1 的一道题
Suggest how to implement a direct-address table in which the keys of stored
el-
ements do not need to be distinct and the elements can have satellite data.
All
three dictionary operations (INSERT, DELETE, and SEARCH) should run in O(1)
time. (Don’t forget that DELETE takes as an argument a pointer to an object
to be deleted, not a key.)
要用 O(1) time的话应该不是用 chaining 吧。
t*********h
发帖数: 941
2
hashmap+linkedlist?

stored
.
object

【在 j*****y 的大作中提到】
: clrs 上 11.1 的一道题
: Suggest how to implement a direct-address table in which the keys of stored
: el-
: ements do not need to be distinct and the elements can have satellite data.
: All
: three dictionary operations (INSERT, DELETE, and SEARCH) should run in O(1)
: time. (Don’t forget that DELETE takes as an argument a pointer to an object
: to be deleted, not a key.)
: 要用 O(1) time的话应该不是用 chaining 吧。

j*****y
发帖数: 1071
3
这是 hash table 那一章的第一节,不会这么复杂吧。

【在 t*********h 的大作中提到】
: hashmap+linkedlist?
:
: stored
: .
: object

w**********o
发帖数: 140
4
I think it should be hash table which using chaining.
i.e. http://faculty.cs.niu.edu/~freedman/340/340notes/340hash.htm
1 (共1页)
进入JobHunting版参与讨论
相关主题
哪位大牛能给贴个tri-nary search tree的delete的code?CLRS 这本书要看哪几章?
文本编辑器设计, 要求append, insert, delete均为O(1)Potential error in the algorithm RB-INSERT-FIXUP in CLRS (p.316, 3rd ed.)?
亚麻onsite最近连着几个面试都是印度人。
算法问题,m*m matrix问一个狗狗的OnSite题
Google onsite 5天后被拒了问个弱智问题,关于bst
One interview question (A)google 一题
问一道题find, insert, delete, getRandom in O(1)
Zillow screen 面经,兼打听工资careercup一道amazon的面试题
相关话题的讨论汇总
话题: delete话题: table话题: direct话题: key话题: chaining