a******t 发帖数: 34 | 1 1. Write code to find the next prime number after a given number.
2. How would you write a benchmark to calculate the time of each memory
access?
3. Searching of images has a feature where you are shown related searches (
eg, people who searched X also searched Y). How would you design this
feature?
4. Imagine you have data being pulled very frequently from a large database.
How would you design a MRU (most recently used) cache? Implement getValue(
int id) for the MRU cache. | h**k 发帖数: 3368 | 2 3 不是很明白题意
database.
【在 a******t 的大作中提到】 : 1. Write code to find the next prime number after a given number. : 2. How would you write a benchmark to calculate the time of each memory : access? : 3. Searching of images has a feature where you are shown related searches ( : eg, people who searched X also searched Y). How would you design this : feature? : 4. Imagine you have data being pulled very frequently from a large database. : How would you design a MRU (most recently used) cache? Implement getValue( : int id) for the MRU cache.
|
|