由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - 请教个C++的面世题
相关主题
[合集] @发在会计版没人理?!一道Bond题。probability question
[合集] Is research background helpful for quant developer job seekquestion(brownian motion)
请教职业发展 quant (c++) or risk[合集] IPV这个function以后转trading或者risk有前途嘛?
an interview algorithm question about finding even occuring (转载)各位大虾,在下以包子跪求一道基本问题的解答 (转载)
[合集] Option Question from a bank interview怎样用knock-in, knock-out复制普通的call?
问一个问题American Put option[合集] 讨论:risk management model与这次全球金融危机。
Goldbach conjectureBinomial vs Black-Schol
Any concrete example on calibrating LIBOR model?BS equation when the option price is 1/S
相关话题的讨论汇总
话题: occurrence话题: c++话题: co话题: hash话题: words
进入Quant版参与讨论
1 (共1页)
t*****n
发帖数: 167
1
Use c++ to write a program to calculate co-occurrence count
of words in a set of files.
Co-occurrence is defined as 2-words
occurring next to each other in a particular sentence.
Also, describe
any assumptions you make.
想用hash_map,但是hash_map好像不支持 pair => key mapping
c********g
发帖数: 54
2
这个不会是quant的面试题吧。 是语音识别里的。发到别的版面吧。

【在 t*****n 的大作中提到】
: Use c++ to write a program to calculate co-occurrence count
: of words in a set of files.
: Co-occurrence is defined as 2-words
: occurring next to each other in a particular sentence.
: Also, describe
: any assumptions you make.
: 想用hash_map,但是hash_map好像不支持 pair => key mapping

c**a
发帖数: 316
3
deque 就好了吧。
deque q;
string s;
is >> s;
q.push(s);
is >> s;
q.push(s);
int count = 0;
while(is)
{
if(q[0]==q[1])
++count;
q.pop_front();
is >> s;
q.push_back();
}

Use c++ to write a program to calculate co-occurrence count
of words in a set of files.
Co-occurrence is defined as 2-words
occurring next to each other in a particular sentence.
Also, describe
any assumptions you make.
想用hash_map,但是hash_map好像不支持 pair => key mapping

【在 t*****n 的大作中提到】
: Use c++ to write a program to calculate co-occurrence count
: of words in a set of files.
: Co-occurrence is defined as 2-words
: occurring next to each other in a particular sentence.
: Also, describe
: any assumptions you make.
: 想用hash_map,但是hash_map好像不支持 pair => key mapping

1 (共1页)
进入Quant版参与讨论
相关主题
BS equation when the option price is 1/S[合集] Option Question from a bank interview
investment expense as market assumption问一个问题American Put option
请教一个面试题 volatilityGoldbach conjecture
面试题目请教Any concrete example on calibrating LIBOR model?
[合集] @发在会计版没人理?!一道Bond题。probability question
[合集] Is research background helpful for quant developer job seekquestion(brownian motion)
请教职业发展 quant (c++) or risk[合集] IPV这个function以后转trading或者risk有前途嘛?
an interview algorithm question about finding even occuring (转载)各位大虾,在下以包子跪求一道基本问题的解答 (转载)
相关话题的讨论汇总
话题: occurrence话题: c++话题: co话题: hash话题: words