Internship Software Engineer Interview Questions

23,658 internship software engineer interview questions shared by candidates

Given a list of commands, in the format [function name, ENTER/EXIT, time event occurs]) return a list of the duration that each function occurred for along with the name of that function. Note: (duration is inclusive of the start and end time) Example of input: F1 ENTER 110 F2 ENTER 120 F3 ENTER 130 F3 EXIT 140 F3 ENTER 150 F3 EXIT 160 F2 EXIT 170 F1 EXIT 180 Level 2/Bonus: if you've already entered a function and you are given a command to enter a new one, it's now a sub-process of the one already started. Return the duration of each function without the time spent in sub functions) (e.g. in the above example, F2 is a subprocess of F1, F3 is a subprocess of F2 and so on)
avatar

Software Engineer(Internship)

Interviewed at Microsoft

4
Oct 2, 2018

Given a list of commands, in the format [function name, ENTER/EXIT, time event occurs]) return a list of the duration that each function occurred for along with the name of that function. Note: (duration is inclusive of the start and end time) Example of input: F1 ENTER 110 F2 ENTER 120 F3 ENTER 130 F3 EXIT 140 F3 ENTER 150 F3 EXIT 160 F2 EXIT 170 F1 EXIT 180 Level 2/Bonus: if you've already entered a function and you are given a command to enter a new one, it's now a sub-process of the one already started. Return the duration of each function without the time spent in sub functions) (e.g. in the above example, F2 is a subprocess of F1, F3 is a subprocess of F2 and so on)

Viewing 1421 - 1430 interview questions

Glassdoor has 23,658 interview questions and reports from Internship software engineer interviews. Prepare for your interview. Get hired. Love your job.