Affirm phone interview
Anonymous User
1630

implement the given two methods:
process_amount(int amount)
process_total_amount()

return the total amount processed within continuous hours
ex) process_total_amount called at 4:20PM --> process total amount between 3:20-4:20PM

What would be the best datastructure to use with least time complexity?

Comments (2)