请教F家面试一题:如何实现facebook的live search# JobHunting - 待字闺中
c*l
1 楼
How would you implement facebook live search suggestion for people's names,
retrieving the top 5.
Assume each person facebook knows a value between 0 and 1 for him. If you
are close friends then the value will be bigger. You should output the first
5 values in descending order.
For example you type "pei" it shows "peiking1, peking2 ..." in drop down
menu
retrieving the top 5.
Assume each person facebook knows a value between 0 and 1 for him. If you
are close friends then the value will be bigger. You should output the first
5 values in descending order.
For example you type "pei" it shows "peiking1, peking2 ..." in drop down
menu