Careercup - Microsoft面试题 - 5175246478901248

时间:2023-03-09 00:18:23
Careercup - Microsoft面试题 - 5175246478901248

2014-05-11 23:52

题目链接

原题:

design an alarm clock for a deaf person.

题目:为聋人设计闹钟?

解法:聋人听不见,那么闪光、震动都可行。睡着的人也看不见光,所以震动应该是更靠谱的。个人觉得做成手表戴在手上的时候,才能保证震动有用。这样,睡觉的时候就得戴着手表了。

代码:

 // http://www.careercup.com/question?id=5175246478901248
Answer:
Deaf people can't hear, thus they need to feel or see.
Vibration:
Vibration may alert people, but need close contact, thus this special alarm clock may have to be alarm watch, which is worn round the wrist.
You wear the alarm watch and you feel the vibration.
Light:
Strong flash light may catch people's attention, but this may not be effective to wake you up. Who sleeps with their eye open?