Invhelper
BAN USER
Questions (2)
Comments (2)
Reputation 215
- 3of 3 votes
Answerspublic class LogEntry {
- Invhelper in United States
public final long startTime; // start time of a job in millisec granularity
public final long endTime; // end time of a job in millisec granularity.
public final long ram; // the amount of ram the job occupies.
public final long jobId;
... constructor ...
}
running total of RAM
|
| 3GB
| -----
| 2GB
| ------
| 1GB -----------
|----- -----------
|
|____________________________________________________time
Find the peakRAM when the input is a collection of LogEntry objects| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Coding - 0of 2 votes
AnswersGiven a string array ex: [1, 2, 3], find the permutation in best time.
- Invhelper in United States| Report Duplicate | Flag | PURGE
Linkedin Software Engineer / Developer Coding
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Open Chat in New Window
Open Chat in New Window
all permutations.
- Invhelper May 18, 2014