I need to create a java project with the following: I have an input file that holds calls range in milliseconds all over the year – the file is sorted by start time. for example 0-100 (call started at 0 ended at 100) 1-100 , 5-50 , 60-150, 65-180 I need to return the period in the year when the network was the busiest. in this example the result will be 65-100 because in this period there were 4 calls in the air I have limited heap memory ( 8GB ) and must run over the file only once what is the best logic to use here ( in java)
Samantha, a question like "What is the best logic to use here?" is not likely to get you many answers. It's your job as the learner to figure out what kind of logic you need to use. At CodeRanch, we try to avoid doing your job for you. We will, however, give you feedback about any ideas you might have and gently suggest ways you might get on track to a better way of doing something.
On that note, what ideas do you have for solving this problem? Show us what you have tried, preferably in code.