# 6K

Technical Manager interview questions shared by candidates

## Top Interview Questions

Sort: Relevance|Popular|Date
Technical Account Manager was asked...10 January 2011

### * Given an array of numbers. Create another array that contains * the product of all the members in the array except the current * element. For example, if you have an array of 3 elements such as: * * A[0] = 2 * A[1] = 4 * A[2] = 6 * * Then the resulting array will be * B[0] = 24 * B[1] = 12 * B[2] = 8 *

10 Answers

public class GoogleInterviewQuestion { public int[] computeProds(int[] intArray) { int product = 1; int[] prods = new int[intArray.length]; for (int i = 0; i &lt; intArray.length; i++) { product *= intArray[i]; } for (int i = 0; i &lt; intArray.length; i++) { prods[i] = product / intArray[i]; } return prods; } public static void main (int argc, String argv[]) { GoogleInterviewQuestion giq = new GoogleInterviewQuestion(); int array[] = {2, 4, 6, 8, 10}; int prods[] = giq.computeProds(array); } Less

More than division by 0, it will fail if any element of original array is 0. All elements of resultant array will be 0? While one element dosent need to be 0. Less

Or even better: def ComputeProds(arr): return [reduce(lambda x,y: x*y, set(arr).difference([c])) for c in arr] Less

Show More Responses

### Given a string like "I'm being interviewed by Amazon" implement a method that reverses the given string so that it looks like "Amazon by interviewed being I'm".

10 Answers

we can first reverse the whole string, and then reverse the individual words O(n) complexity Less

3-line solution in PowerShell: \$str = "I'm being interviewed by Amazon".Split() \$([array]::Reverse(\$str) ) [string]\$str Less

" ".join("I'm being interviewed by Amazon ".split()[::-1])

Show More Responses

### you have one giant cube made of 1000 small cubes(arranged them in 10x10x10) if you put the giant cube into the bucket that filled with water, then how many of small cubes are actually get wet?

8 Answers

488. 1000 - (8*8*8) = 488

correct answer is 488 : 2*[10*10 + 8*10 + 8*8] = 488 This accounts for including of cubes with sides viible on 2 or three flat surfaces and eliminates the repeats.. Less

Top and bottom faces: 10 * 10 * 2 = 200 The blocks along vertical edges = 4 * (10 - 2) = 32; -2 as the top of the line and the bottom of the line are already counted amongst the top and bottom faces. 4 inner faces = 4 * 8 * 8 = 256; 8 as these aren't yet counted amongst the top and bottom faces or the vertical edges. Total = 200 + 32 + 256 = 488. Less

Show More Responses

### What is the hardest thing in moving a team to Agile?

5 Answers

Personalities and level of comfort of the development staff. Some team members can resist change they don't understand. The key is in presentation of the core of Agile/Scrum and not in the buzzwords or trendiness - emphasize the minimized reaction to positive developments and test/missed Architecture or requirements, the daily standups being the only real hassle, etc. You pitch it to the team member's values and sense of worth, as being an improvement to empower the coder and add worth. The next hardest thing is convincing a skeptical management, PMO, Systems Engineering staff, and probably best to not mention it to the Customer for a release or two. Less

- New team (everyone is still forming, norming, storming) so hard to estimate and collaborate - Distributed team members (works best if teams are collocated) - Strong, individual performers. Agile is about team work. - Not having a product owner - etc. Less

It's the people. Getting them to understand the Agile concept, then utilize it. Some developers never get "Fluid Requirements". They want final requirements and that's it. Less

Show More Responses

### Estimate the number of spark plugs in the state of California.

5 Answers

In fact the number is much larger than that. The average number of sparks per vehicle (in CA) is probably closer to 5.5. Four-cylinder vehicles are the norm in Europe, but in the US is common to see a higher percentage of V6 and V8 engines. For every gas (not diesel, as noted previously) vehicle in CA, working or not, you could estimate ~5.5 sparks. In addition, you have to account for all stored (i.e. not necessarily installed in vehicles) sparks. So if there are, say, 20k car shops in CA and each of them holds 100 sparks in stock, that's another 2M sparks. How about motorbikes? Probably 2.5 sparks on average? Any spark factories in CA? Finished product would count too. How many unsold/retired vehicles? I'd say the final number is well north of 100M. Less

Cars, lawn mowers, edgers, and many other engines. Only going by cars is a huge underestimate. Less

This is a fermi question. assuming there is one sparkplug per vehicle, and the number of sparkplugs used in other machinary pales in comparision to the number of vehicles in california, then you just need to get the ball park figure for the number of vehicles.. here's my shot at it.. CA population is roughly 40 million. I would estimate roughly 1 car per family.. so lets say about 15-20 million cars in CA (taking into account children). so ball park figure of 20 million. lets add 10 million more for commercial vehicles, motorcycles,trailers etc.. . I would estimate a total of 30 million spark plugs in the state of California. Less

Show More Responses

### what was most innovative technical work you have done

5 Answers

We have developed Virtual Music Instruments for A.R Rahman. These are musical bands worn to hand and these generate midi tones and sent over Air (two variants Bluetooth, UWB). A third variant is again demonstrated by A.R.Rahman in many concerts, with technology based on camera. All of these variants are used by A.R Rahman in various concerts. Less

We have developed Virtual Music Instruments for A.R Rahman. These are musical bands worn to hand and these generate midi tones and sent over Air (two variants Bluetooth, UWB). A third variant is again demonstrated by A.R.Rahman in many concerts, with technology based on camera. All of these variants are used by A.R Rahman in various concerts. Less

We have developed Virtual Music Instruments for A.R Rahman. These are musical bands worn to hand and these generate midi tones and sent over Air (two variants Bluetooth, UWB). A third variant is again demonstrated by A.R.Rahman in many concerts, with technology based on camera. All of these variants are used by A.R Rahman in various concerts. Less

Show More Responses

### Quiz: 4 persons need to cross a bridge where only 2 can cross at a time, having 1 torch. A can cross in 1 min, B in 2 min, C in 5 min and D in 10 min. What combination will make them go fastest across the bridge.

4 Answers

A and b, c and d

A and b, c and d

A and D, B and C

Show More Responses

### How would you explain story points to a team who's new to Agile/Scrum?

4 Answers

Time vs effort.. teams get hung up on time based estimates. And not about the amount of effort it's going to take to accomplish a task/user story. Less

It’s about demonstrating it to them and comparing the efficacy compare to other frameworks via dissecting a story vertically to the smallest size possible. Less

I said I would talk to them about t-shirt sizing and try several ways to help them understand that story estimation has little to nothing to do with time, rather effort. I also explained that this was a challenging topic for a new team. Less

Show More Responses

### A vaguest ion that was asked in a very general way, but which the interviewer clearly had specific answers he was looking for: "what are four components that are included in every specification doc". That sounded a lot like a thing you would find at Microsoft and similar large companies where process is more strictly defined. I answered poorly, I think, perhaps because I haven't worked with that kind of spec in a very long time, and not on any projects that worked out well. Smaller orgs/programs/projects (startups and incubators, for example, where the outcome is always in flux, as I am accustomed to working with) can have poor specs, specs that are centered on marketing, planning documents that are made up of wireframes and time-based stage gates. In any case, I choked a bit, and the interview kind of skated around and became more specific as we went along. I don't think that is inappropriate, though, because Amazon does value and expect the ability to deal with ambiguity.

4 Answers

"what are four components that are included in every specification doc" This question is insane, and I would hate getting an interviewer that asks such a question. Correct answer can be: "1. Title, 2. Author, 3. Requirements, 4. Version". If the title "requirements doc" is not there, maybe it is not a requirement doc. Specific sections are: http://en.wikipedia.org/wiki/Product_requirements_document Less

The toughest interviewer with the "4 components" question was a dev, in fact. The TPM screen was not so academic, more about challenges and solutions, philosophy, team fit, familiarity with the specific technology and business. That was definitely the screen that didn't go well, although he was wicked smart and wasn't just trying to mess with the candidate or anything. Less

What do you mean of Sepc ? If you mean a document which will be used for developing a feature of software i.e Use case sepc, user story, backlog item, It should contain at least following components : 1- Who is Actor / Role 2- What action will actor/role will take ? 3- Goal. Why actor do that ? what the software will provide for user. You may add acceptance criteria to the above list. Less

Show More Responses

### Given two arrays find all the points of intersection between the (i.e. equal elements) and return them in an array.

4 Answers

traverse first array: O(n) put elements into hashtable: O(1) traverse through second array: O(m) check for existence of element in hashtable: O(1) if yes, add to resultant array. return resultant array So, final time complexity is O(n) Less

couple of solutions - sort the array (nlogn) complexity - browse with the smaller array and visit each of the bigger array and return if there is a match. Complexity (n square) thus not a good solution next solution - sort the arrays and remove duplicates (nlogn) - create a table, with the longer array - browse to the smaller array and update the count - Less

use a hashtable. O(n).

Show More Responses
Viewing 1 - 10 of 5,995 Interview Questions