由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 这道面试题如何入手?
相关主题
看到个面试题,不会做……这道雅虎的面试题绝了,有谁会做吗
大家看一下这道google面试题这道算法面试题怎么做?求一元一次方程的解
谁能解释下这道c++的面试题一道A家面试题 大家讨论看看
怎么做这道面试题?一道面试题, 挺难的, 求助
谁还记得这道面试题吗?G家面试题请教
问问谁会这道算法的面试题?求解一道面试题 snake sequence
这道Amazon面试题怎么做别处看到的g家一个画grid的面试题
这道设计面试题这样解对吗问一道古老的面试题
相关话题的讨论汇总
话题: cloudy话题: snow话题: chance话题: saturday话题: mostly
进入JobHunting版参与讨论
1 (共1页)
e*****n
发帖数: 124
1
Today: Mostly cloudy with a 20 percent chance of snow. Highs in the mid 30s.
Tonight: Cloudy with a 20 percent chance of snow. Lows in the lower to mid
20s.
Saturday: Warmer. Mostly cloudy with a 10 percent chance of snow. Highs in
the lower to mid 40s. Winds 10 to 15 mph.
Saturday Night: Mostly cloudy. Chance of rain in the morning, then chance of
snow overnight. Probability of rain and snow 40 percent. Lows 25 to 31.
Sunday: Partly cloudy. Highs 40 to 46.
Sunday Night: Partly cloudy. Lows 24 to 30.
These words are automatically generated from various gridded weather
information such as: Temperature, Wind, Probability of Precipitation, and
Precipitation Type (Rain, Snow, etc.). Note there are dependencies from one
time period to another (e.g. “Warmer”) plus dependencies between phrases
within a time period as appears in the Saturday Night forecast.
Design the algorithm allowing the auto-generation of these textual
descriptions from said gridded fields. How would you approach this software
design problem?
Since “one size does not fit all”, the software must be extensible and
easily customized. For example, “Warm” in Alaska may mean something
different than in Florida. Also, the algorithms to produce the digital data
may differ from location to location.
What software design concepts (or approach) would you use?
怎么入手?数据结构?怎么设计?
m**********s
发帖数: 518
2
Consider the output as segments
Each segment needs a strategy
Each strategy has multiple factories
h***n
发帖数: 1600
3
你的数据可能来源于XML, JSON或者databse等,你设置好switch case和和rule,根据
你取到的数据加不同英文句子。比如这句:
Saturday: Warmer. Mostly cloudy with a 10 percent chance of snow. Highs in
the lower to mid 40s. Winds 10 to 15 mph.
一开始是时间,然后是“warmer" ,warmer“ 这个可能要根据和前一天的温度比较得
出, “ most cloudy" 是它的数据里的信息,降雪概率10%它的数据里也会有。你就把
数据套到句子里去就行了。......
另外有些描述性句子,它原始给出的数据就可能这样的。
1 (共1页)
进入JobHunting版参与讨论
相关主题
问一道古老的面试题谁还记得这道面试题吗?
h1 partime有最低时限要求么?问问谁会这道算法的面试题?
Bloomberg C++ 软工面试题汇总这道Amazon面试题怎么做
贴点面试题, ms和google的这道设计面试题这样解对吗
看到个面试题,不会做……这道雅虎的面试题绝了,有谁会做吗
大家看一下这道google面试题这道算法面试题怎么做?求一元一次方程的解
谁能解释下这道c++的面试题一道A家面试题 大家讨论看看
怎么做这道面试题?一道面试题, 挺难的, 求助
相关话题的讨论汇总
话题: cloudy话题: snow话题: chance话题: saturday话题: mostly