Senior software developer interview questions shared by candidates
There is an array of numbers from 1 to N in random order. A random number was picked and taken out. Give an algorithm to determine which one.
Answer 1: Add all the numbers and subtract from the 1..N sequence sum. Answer 2: Scan through the array and convert each member into a key-value pair such as hash[n] = n. Then scan through 1..N keys to determine which one has a null value (or unassigned). Compared to the "aha" solution, this one is O(2n) but adding too many numbers could cause overflow if N is big enough.
Standard questions for experienced people. Questions are of hands on critical skill testing questions. Interview with client started directly from very difficult area and higher. Interview questions was asked assuming the person is experienced not drilling from basics . Top five to 10 most difficult questions asked once satisfied asked to come on site or Skype .
See Interview Questions for Similar Jobs
- Social Worker
- Pharmaceutical Sales
- Medical Assistant
- Dental Assistant
- Sales Associate
- Administrative Assistant