ootah
BAN USER
Student at the University of Illinois at Urbana-Champaign
BS, Computer Engineering
- 3of 3 votes
AnswersGiven two parameters (a target string and a source string), write code that returns the number of times characters found in the source string occur in the target string.
- ootah in United States
For example, if target="Hello world" and source="llld" then return 4| Report Duplicate | Flag | PURGE
Citrix System Inc Software Engineer / Developer C - 0of 0 votes
AnswersWhat language are you most comfortable with? (I answered C/C++)
- ootah in United States
What's an unordered map, and how is it implemented?| Report Duplicate | Flag | PURGE
Amazon SDE1 Knowledge Based - 0of 0 votes
AnswersCreate the mirror image of a binary tree.
- ootah in United States| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Data Structures - 0of 0 votes
AnswersFor a given US based phone number, write a function to return all possible alphanumberic words that can be formed with that number, based on the keypad of a standard phone.
- ootah in United States
For example, one possible value for 1-800-623-6537 could be 1-800-MCDNLDS| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Algorithm - 9of 11 votes
AnswersGiven a number N, write a program that returns all possible combinations of numbers that add up to N, as lists. (Exclude the N+0=N)
- ootah in United States
For example, if N=4 return {{1,1,1,1},{1,1,2},{2,2},{1,3}}| Report Duplicate | Flag | PURGE
Facebook Software Engineer / Developer Algorithm - 0of 0 votes
AnswersHow would you create a stack backtrace once an exception has occurred on an x86 platform?
- ootah in United States for Kernel
EDIT: Sorry, I should have mentioned that you don't have GDB or any debugging tools. You're supposed to implement everything from scratch in assembly.| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Assembly - 0of 0 votes
AnswerImplement a synchronized queue for multiple threads, avoiding race conditions and deadlocks
- ootah in United States for Kernel
EDIT: There was a tougher follow up btw: If you use any synchronization mechanisms, how might they be implemented at the assembly level?| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Assembly C#
The stack gets you the raw data, correct. But how would you know which functions were called and what are the local variables and parameters? ;)
Keeping track of each line of code is not necessary. Assume that the instructions are still stored in memory. You need to find out what they are.
That's very similar to what I had, except it took me forever and some help from the interviewer to get there!
- ootah November 20, 2013