Intern Software Interview Questions

17,771 intern software interview questions shared by candidates

Say You have M log files internally sorted by timestamp but the files themselves are in non sorted order and may be overlapping. (for example - File1 18:00 - 18:15, File2 17:50-19:00). Each line is a log and they are indexes and have timestamps. How do you print them out in sorted order , WITHOUT loading all to memory and sorting them (say u hav a memory limit) ?
avatar

Software Intern

Interviewed at Amazon

3.5
Nov 25, 2025

Say You have M log files internally sorted by timestamp but the files themselves are in non sorted order and may be overlapping. (for example - File1 18:00 - 18:15, File2 17:50-19:00). Each line is a log and they are indexes and have timestamps. How do you print them out in sorted order , WITHOUT loading all to memory and sorting them (say u hav a memory limit) ?

Viewing 2081 - 2090 interview questions

Glassdoor has 17,771 interview questions and reports from Intern software interviews. Prepare for your interview. Get hired. Love your job.