Bank of America Interview Question for Java Developers
- 0of 0 votes
Given the fact that you have a map <SessionId, SessionValueObject> , . The sessionValueObject contains timestamp as well associated with the session. In generality, we are maintaining a key value pair. And each session has a timestamp associated with it.- jimmy514in April 11, 2013 in United States
Now the question was given a particular timestamp associated with a sessionValueObject, we need to implement a data structure such that,
given a timestamp t1, we need to free/ remove all the sessionValueObjects associated after the timestamp t1.
How do we do this efficiently?
| Report Duplicate | Flag | PURGE
Bank of America Java Developer
Open Chat in New Window