Developer Interview Questions

271,338 developer interview questions shared by candidates

Assume you need to optimize a program which has about several Billion lines of code. You can get access to the source code and make modification. So what will to do to make this program run faster? The key thing is it has several Billion lines of code, so it is impossible to analyse the code deeply.
avatar

Software Developer

Interviewed at Garmin

3.7
Jul 25, 2013

Assume you need to optimize a program which has about several Billion lines of code. You can get access to the source code and make modification. So what will to do to make this program run faster? The key thing is it has several Billion lines of code, so it is impossible to analyse the code deeply.

1. Write a code that will take in a string and count the number of characters in the string. 2. Write a code that takes in two different arrays, compares them and ouputs whatever is not common in the 2 arrays.
Feb 6, 2015

1. Write a code that will take in a string and count the number of characters in the string. 2. Write a code that takes in two different arrays, compares them and ouputs whatever is not common in the 2 arrays.

You have 50 balls, half white and half black. You have to put all the balls in two boxes and then I choose one ball from any of the boxes without seeing. If I choose a black ball I win, if I choose a white one you win. How would you distribute the balls in the boxes in such way that you have more odds to win.
avatar

Software Developer

Interviewed at Amazon

3.5
Jul 14, 2017

You have 50 balls, half white and half black. You have to put all the balls in two boxes and then I choose one ball from any of the boxes without seeing. If I choose a black ball I win, if I choose a white one you win. How would you distribute the balls in the boxes in such way that you have more odds to win.

Viewing 1651 - 1660 interview questions

Glassdoor has 271,338 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.