由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 一到面试题 弱弱求解答
相关主题
讨论一道面试题大家看看这几道google面试题怎么做?
一道面试题。急问一个面试题,不知该如何回答?请高人给个思路!谢谢!
与Bloomberg的情路纠葛,再贡献三道面试题一道google 面试题
请教一道面试题一道面试题
一个Google面试题请教一道面试题
讨论一道面试题问一道 facebook 面试题
问道看到的面试题问一道salesforce面试题
BB的面试题-只用&和| 如何reverse a bit string?一道面试题求解
相关话题的讨论汇总
话题: time话题: std话题: double话题: int话题: series
进入JobHunting版参与讨论
1 (共1页)
y******k
发帖数: 1
1
Consider two time series. Each time series contains price and time. Time is
expressed in number of seconds since market open. Every time when price
changes – there is a new entry into time series. Write a program that
receives two inputs: time series 1 and 2, and calculates another time series
containing the price difference (spread) between the two products at fixed
10 seconds interval.
//Each timeseries in represented as a key-value object, where keys are times
and values are prices.
//We simply take two timeseries key-value objects and return one that has
times in 10 second intervals.
std::map Problem7::getSpreadTimeSeries(std::map
ts1, std::map ts2)
{
//Fill this function
std::map pseudo_answer = std::map();
pseudo_answer.insert(std::pair(1, 4.0));
return pseudo_answer;
}
1 (共1页)
进入JobHunting版参与讨论
相关主题
一道面试题求解一个Google面试题
问一道面试题讨论一道面试题
问个sql的面试题问道看到的面试题
问一道glassdoor上面的面试题BB的面试题-只用&和| 如何reverse a bit string?
讨论一道面试题大家看看这几道google面试题怎么做?
一道面试题。急问一个面试题,不知该如何回答?请高人给个思路!谢谢!
与Bloomberg的情路纠葛,再贡献三道面试题一道google 面试题
请教一道面试题一道面试题
相关话题的讨论汇总
话题: time话题: std话题: double话题: int话题: series