我去他妈的itunes# Apple - 家有苹果
a*t
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.
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.