Google Interview Question for Software Developers
- 0of 0 votes
A stream of data representing the price of a commodity is being read. The data is of the format (price:Int, timestamp:Option[Long]).- abzy August 17, 2019 in India
If the timestamp is missing, it means the price has to be deleted.
If timestamp is old, it means the previous data with same timestamp has to be updated with this new price.
Else it's the new price of the commodity.
At any point of time the latest, max and min of the price has to be printed.
If the delete instruction is received through the stream, the min/max should be updated accordingly.
| Report Duplicate | Flag | PURGE
Google Software Developer Algorithm
Interview Type: Phone Interview
Open Chat in New Window