由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问问通常所说的字典dictionary都是用什么数据结构表示的?
相关主题
也报个G家intern面经Write a program to find the longest word made of other words
请问各位大牛,如何实现DAWG?再问一道A家的题目
问一个问题的算法实现an interview question in careercup
急, 请教个面试问题dictionary 的程序怎么写
boggle的复杂度亚马逊电面一
弱问个数据结构的问题问另一道电话号码查询的题
问一道字典题解答。问2个BB面试问题
T家店面问个google面试题
相关话题的讨论汇总
话题: dictionary话题: 数据结构话题: trie话题: 通常话题: 字典
进入JobHunting版参与讨论
1 (共1页)
w****o
发帖数: 2260
1
看到很多题都是跟dictionary有关的,面试时问到的话,通常是用什么数据结构表示的?
还是面试官已经告诉你了已经有一个用某种数据结构建好的dictionary,你就不用担心
了?
g*********e
发帖数: 14401
2
usually the dictionary is built and you are given functions like isWord() to
use.
You can build dictionary by hash table, or trie
p*****2
发帖数: 21240
3
面试的时候要求写一个trie也是有可能的。
w****o
发帖数: 2260
4
能否说说如何用hashtable建dictionary?
本人对hashtable不是太懂,不好意思。
谢谢!

【在 g*********e 的大作中提到】
: usually the dictionary is built and you are given functions like isWord() to
: use.
: You can build dictionary by hash table, or trie

z****4
发帖数: 194
5
如果每个词要求存additional information,比如释义的话,那么trie是最优的;如果
只要求存这个词,不存其他任何information,那么最优的数据结构是dawg

to

【在 g*********e 的大作中提到】
: usually the dictionary is built and you are given functions like isWord() to
: use.
: You can build dictionary by hash table, or trie

w*******0
发帖数: 246
6
我有过面试被要求写个trie。写得挺好的,结果被拒了
1 (共1页)
进入JobHunting版参与讨论
相关主题
问个google面试题boggle的复杂度
Bloomberg 一道题弱问个数据结构的问题
BB 一题问一道字典题解答。
G家电面题,求解答‏T家店面
也报个G家intern面经Write a program to find the longest word made of other words
请问各位大牛,如何实现DAWG?再问一道A家的题目
问一个问题的算法实现an interview question in careercup
急, 请教个面试问题dictionary 的程序怎么写
相关话题的讨论汇总
话题: dictionary话题: 数据结构话题: trie话题: 通常话题: 字典