由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - interview question
相关主题
rocket fuel 面试题一道面试题
小公司onsite面经(求bless)几道面试题
amazon 一道题an interview algorithm question about finding even occuring freq
g电面,新鲜面经Google 需要bug free 么?
一个面试challengefind top K most occurring words in streaming data 这题怎么做比较好
Amazon onsite interviewgoogle 电面
facebook telephone interview from careercuponsite面试问题一道
也来攒下人品,L面经求Programming Pearls 2nd 英文版 Complete Version
相关话题的讨论汇总
话题: 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版参与讨论
相关主题
求Programming Pearls 2nd 英文版 Complete Version一个面试challenge
谁会做>??????????????????????????????????????Amazon onsite interview
没人讨论热门帖子里的两道概率题?facebook telephone interview from careercup
T家店面也来攒下人品,L面经
rocket fuel 面试题一道面试题
小公司onsite面经(求bless)几道面试题
amazon 一道题an interview algorithm question about finding even occuring freq
g电面,新鲜面经Google 需要bug free 么?
相关话题的讨论汇总
话题: name话题: file话题: table话题: question话题: interview