I was asked to implement two methods:
store_loan(volume) - persists loan at the time it came
get_loan_volume() - returns summary of loans from last hour.
Language free of chocie. No additional criteria regarding complexity of initial solution.
Then I was asked to describe space and time complexity of each function implemented.
Later we talked about optimisation posibilities.
I was asked to propose solution with constant space complexity allowing results to not be that accurate.
Comments (6)


