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)
Internship Software Engineer Interview Questions
23,446 internship software engineer interview questions shared by candidates
The coding question was to create a function that took in a string and you were supposed to write a compression algorithm by listing which characters were repeating.
What was a technical project you worked on? How would you break it down to a person with no technical background? (Use a whiteboard.)
read the given string and print out how many same characters in the string
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
Given a list of sequential numbers, there will be two missing numbers from the sequence. Print those two numbers.
do you have research interests and plan for post graduation
Where is an object Stored in java
How would you implement toupper()?
How would you classify photos whether they represents "X" or "O".
Viewing 1421 - 1430 interview questions