s******s 发帖数: 89 | 1 设计题: a restful server with 4GB,
given a request such as: http://seq=4?len=60?xxxxdata
the system will store the binary data with that sequence number.
given a request: http://startseq=3?maxLen=100, the system returns all data objects with sequence >= 3 with total data length less equal than 100. | y**********a 发帖数: 824 | 2 店面还是 onsite 啊。这个电面的话 2 分钟就挂了. | s**x 发帖数: 7506 | 3 我觉得一 ordered Map 就够了,logN, with 4G, should be good enough, since you
can not store so many sequences any way. Max is 32. Ordered map has order
so you can find next sequence in order easily.
★ 发自iPhone App: ChineseWeb 8.7
【在 s******s 的大作中提到】 : 设计题: a restful server with 4GB, : given a request such as: http://seq=4?len=60?xxxxdata : the system will store the binary data with that sequence number. : given a request: http://startseq=3?maxLen=100, the system returns all data objects with sequence >= 3 with total data length less equal than 100.
|
|