Developer Interview Questions in Raleigh-Durham, NC | Glassdoor

# Developer Interview Questions in Raleigh-Durham, NC

523

Developer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### Web Developer at McClatchy was asked...

Sep 15, 2014
 What's in a grunt file and explain what it does1 AnswerA JS or Coffeescript file that goes in project root next to package.json. Includes wrapper function, project and task configuration, loading grunt plugins and tasks and custom tasks.

### Web Developer at Lenovo was asked...

Oct 8, 2013
 They presented a demo page and asked me to streamline it to make it more interactive and presentable for a user (open to interpretation).1 AnswerUsing JavaScript/jQuery, I created a simple slideToggle() click event on paragraph headers that collapsed them. I also changed the fonts and font weights to be more readable.

### Senior Applications Developer at Deutsche Bank was asked...

Feb 14, 2011
 We have a pond containing a single bacterium. The number of bacteria double every 5 minutes, and the pond is full of them in 24 hours. If we started with the same pond but two bacteria, how long will it take to fill the pond?4 AnswersI struggled with this a bit and got close. I believe answer is: 23:55This is a clear case of Geometric progression. Find the nth term Tn1 = a*r^(n-1). where n = (24 * 60)/5,a = 1 and r=2. when the initial value (a) = 2, the values become n = ?, a = 2 and r = 2. Since Tn1 = Tn2, Equate the RHS of both the equation. Since the base are equal, equate the powers, doing so will give the n value. When n is convert into minutes one get 23 hrs 55 minutes.this is easy, you don't need all the math. The pond was half full five minutes before, so it's 23:55Show More ResponsesThe first pond started with 1 bacterium and doubled to 2 in five minutes. Therefore, the second pond will take 5 minutes less than the first to be full. ie: 23:55

### Senior Applications Developer at Deutsche Bank was asked...

Feb 14, 2011
 There are 10 stacks of 10 coins each. 9 of the stacks contain coins that weigh 1g each. The other stack contains coins of 2g each. The coins look the same. We have a scale that we can get a measurement of grams from, not a balance. We can use the scale exactly once to weigh anything here from a single coin to all of them. How can we determine which stack is the 2g coins?4 AnswersWeigh these together: 10 coins from stack 1, 9 from stack 2, etc ending with 1 from stack 10. The weight of these will tell you which stack has the 2g coins. Ex: if it's 1st stack: 65g, 2nd: 64g, 10th: 54gExcellent question!A more eloquent answer would be: Weigh together 1 coin from stack 1, 2 coins from stack2, 3 coins from stack 3, etc. Subtract 55 from that total weight to get the number of the stack with the 2g coins.Show More ResponsesBinary sort 1. Use single coin (I'd drop my stacks *s*) from each stack. Mark them by stack. 2. Place 5 each on both scales; note lower scale. 3. Place 2 coins on each scale, keep one aside; note scale. 4. If scales are at same level the coin NOT on the scale indicates the stack with heavier coins. Done. 5. If one scale is lower place 1 coin on each scale, note lower, identify stack. Done.

### Process Development Engineer at Cree was asked...

Oct 30, 2011
 Can Si be used to make LEDs ?3 AnswersSi can be used as a substrate in LEDs, but it cannot be used in the p-n junction because the bandgap energy is too small to produce visible light.Technically: Yes. But it has an indirect bandgap, so you really wouldn't want to.The energy bandgap of Si at room temperature is 1.12eV. Since the relationship between photon energy and wavelength is E(eV)=1.24/wavelength(micrometers), one can calculate that Si could emit a ligth in infrared optical spectrum: wavelength=1.24/1.12eV=1.11 micrometers. BUT, Si is indirect semiconductor! And therefore does not emit significant amounts of light due to the requirement of momentum conservation in optical transitions.

### Process Development Engineer at Cree was asked...

Mar 18, 2011
 How many barbers to cut men's hair in a city of 2 million people?2 Answers~3000 barbers. Work your way to the answer.I got the same answer, based on eight hour work days with 2 weeks of vacation each year. Based on the interviews I have read, if CREE hired the barbers, they would only need 1500, since they would be working 80-hour weeks.

### Process Development Engineer at Cree was asked...

Feb 29, 2012
 If a glass of water is half full and you put ice in it, when ice melts, the water level will increase of decrease or remain constant? Give scientific reason.2 AnswersIt will remain constantThe ice will float with a fraction of the ice cube sticking above the surface which is determined by the ratio of the density of water to the density of ice. Since these densities do not change as the ice melts, the fraction of ice above the water surface will never change. Since the fraction of ice above the water's surface never changes, the volume decrease of ice below the water surface during melting is always exactly replaced with an equivalent volume of melt. Therefore the water level in the glass will not change throughout the melting process.

### Software Development Engineer at Microsoft was asked...

Sep 11, 2010
 Given a linked list with cycle, find the cycle. 2 Answersmaintain a stack and mark nodes as you go alongIt's a well known problem. You need to have two pointers one of which traverses the list with a double speed. The cycle is found if sometime after start the fast pointer crosses the slow.

### Process Development Engineer at Cree was asked...

Mar 7, 2013
 Estimate the number of flat tyres in the US in a year?3 AnswersGive a ball park figure based on your reasoning. Should be simplePer Wiki, 220 million. One would need to know how many cars are driven in US or that a flat tire occurs every 7 seconds. Did you know "Current US Population is 314.69 million".345632. How can you say that? Go count yourself