The interview was pretty decent. I've only had the initial recruiter phone call and a technical assessment so far. I expect to move on to the next round.
Here is the question:
# /*
# we're going to build an event counter
# // increments the counter associated w/ event_name at the given time
# // time is given in seconds from the epoch
# record(event_name string, time int)
# // resolution is either hour or day
# // start and end are inclusive / exclusive respectively
# // if there aren't any events for a queried hour/day fill the array w/ 0
# query(event_name string, resolution string, start int, end int) []int
# record("/api/v1/products", 0)
# record("/api/v1/products", 1)
# record("/api/v1/products", 3600)
# record("/api/v1/products", 24 * 3600)
# query("/api/v1/products", "hour", 0, 3) -> [2, 1, 0]
# query("/api/v1/products", "hour", 36, 48) -> [...]
# query("/api/v1/products", "day", 0, 3) -> [3, 1, 0]
# */