Senior Member of Technical Staff Interview Questions | Glassdoor.co.in

Senior Member of Technical Staff Interview Questions

166

Senior member of technical staff interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

given 8 coins and one of them heavier than the others, how many weighings will be needed to find the odd one ?

4 Answers

two weighings are needed. separate into three groups (3,3,2) put three on each side of scale, if sides balance then place two remaining coins on either side of scale to see which is heavier. If sides don't balance, take two coins from the heavier side and put on the scale to see if one is heavier, if they balance, the one you took off is the heaviest.

One weighing. Place four coins in each pan. Take two off at a time until the scale balances. The heavier coin will be in the hand of the pan that ascends.

@Cigar lover ... no. once you put coins on the scale, that counts as a weighing, and every time you remove coins it counts as a weighing. this boils down to the 3-3-2 solution above. the first time you remove 2 and weight, you are weighing 3-3. at that point there are 3 possibilities still. the scale is even, or one or the other side is down. you have to do one more weighing from there.

If we write return statement in try, catch and finally block, which one will execute when and why ?

4 Answers

Explain overall polymorphism using uml diagram?

2 Answers

Write a program to maintain a soda-machine. Right from penny insertion until purchase log including menu options.

1 Answer

Data structures and algorithm based questions

1 Answer

coding round - two questions - 1.5 hours time - hacker rank 1) find the pair of indexes in an array whose values sum equal given number - duplicate pairs not allowed 2) Special key board contains special keys problem ...something like special keys are "A", "Ctrl+A", "Ctrl+C", "Ctr+V", Input is number of keystrokes-Need to find how many "A"'s could appear on the screen using these special keys Technical Round -1 1) Given a singly linked list , given input n, -- Need to reverse every n nodes in the linked list -- in other words (Reverse a Linked List in groups of given size) 2) Check wheter given tree is symmetric or not 3) Give any data structure of complexity o(1) 4) Celebrity with millions of followers - updates some page, how does it reach ..technology behind it. Round 2: 1) Reverse sub strings of given String Eg: "My name is Salesforce" output : "Salesforce is name My" 2) An array contains some integers, Need to find the index at which sum of left indexes equal to sum of right indexes Eg { 1, 2, 5, 1,2,6} --> index is 3( sum is 8 to left and right } 3) Least common ancestor 4) Design chat application

1 Answer

Coding and design questions

1 Answer

Telephonic Interview: Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and is greater in value than n. If no such positive 32-bit integer exists, you need to return -1. Example 1: Input: 12 Output: 21 Example 2: Input: 21 Output: -1

1 Answer

Telephonic Interview : Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each other are not the same. If possible, output any possible result. If not possible, return the empty string. Example 1: Input: S = "aab" Output: "aba" Example 2: Input: S = "aaab" Output: "" Note: S will consist of lowercase letters and have length in range [1, 500].

1 Answer