Developer Internship Interview Questions

23,896 developer internship 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)

Similar to (283. Move Zeroes) on LeetCode, except instead of moving zeros to the end of the array (which is pretty trivial), had to move zeros to beginning of the array while maintaining the order of all non-zero elements. Probably LC Easy/Med
avatar

Software Engineer(Internship)

Interviewed at Microsoft

4
Apr 3, 2022

Similar to (283. Move Zeroes) on LeetCode, except instead of moving zeros to the end of the array (which is pretty trivial), had to move zeros to beginning of the array while maintaining the order of all non-zero elements. Probably LC Easy/Med

Viewing 1431 - 1440 interview questions

Glassdoor has 23,896 interview questions and reports from Developer internship interviews. Prepare for your interview. Get hired. Love your job.