boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - interview question
相关主题
rocket fuel 面试题
小公司onsite面经(求bless)
amazon 一道题
g电面,新鲜面经
一个面试challenge
Amazon onsite interview
facebook telephone interview from careercup
也来攒下人品,L面经
一道面试题
几道面试题
相关话题的讨论汇总
话题: name话题: file话题: table话题: question话题: interview
进入JobHunting版参与讨论
1 (共1页)
f*****e
发帖数: 57
1
Say you have a file containing name value pair, such as
foo: bar
a: b
foo: bar
a: c
The file may be huge, but the number of names are limited.
Given a name, find out how many times the name occurs in the file.
It looks to me there is a straight forward solution using hash table:
we preprocess the file, hash each name into the table, and keep the
count. We then use the same table to look up the name occurrence.
This should be programmed in C, so not stl.
1 (共1页)
进入JobHunting版参与讨论
相关主题
几道面试题
an interview algorithm question about finding even occuring freq
Google 需要bug free 么?
find top K most occurring words in streaming data 这题怎么做比较好
google 电面
onsite面试问题一道
求Programming Pearls 2nd 英文版 Complete Version
谁会做>??????????????????????????????????????
没人讨论热门帖子里的两道概率题?
T家店面
相关话题的讨论汇总
话题: name话题: file话题: table话题: question话题: interview