Amazon Interview Question for Java Developers
- 0of 0 votes
There is a process sequence that contains the start and end of each process. There is a query sequence asking how many processes are running at a certain point in time. Please return the query result of the query sequence.- ajay.raj March 05, 2018 in United States
Given logs = [[1, 1234], [2, 1234]], queries = , return .
There are 2 processes running at time 2.
Given logs = [[1, 1234], [2, 1234]], queries = [1, 1235], return [1, 0].
There is a process running at time 1, and 0 processes running at time 1235.
| Report Duplicate | Flag | PURGE
Amazon Java Developer
Open Chat in New Window