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 Interview Questions
24,850 internship software interview questions shared by candidates
Typical interview questions
read the given string and print out how many same characters in the string
In my technical round I was asked long integer addition using linked lists. In my HR round I was asked fibonacci with edge cases, and I was asked to design a system for garage parking at a mall.
Describe multithreading for 5 years old
They given 3 arrays and i was asked to take 3 elements from each array such that the difference between the elements that i selected has to be minimum
What was your hardest project?
1) Implement an iterator for a binary tree 2) Given 2 strings s1 and s2, return True if s2 is a substring of s1. Follow up: Return True if any combination of s2 is a substring of s1
3. 100 doors puzzle (doors toggled in multiple passes).
1. Find pairs with minimum absolute difference in an array (Closest latency spikes).
Viewing 1521 - 1530 interview questions