PHP programmer interview questions shared by candidates
I was given a logic question where you have 5 balls. One of the balls is heavier than the others. What's the fewest number of times you have to compare weights to figure out which ball is heavier.
I believe the answer was e. I think I decided on three.
If "the fewest number" is the minimum, you have to compare 4 time: ie: 1vs2 ball 1 compare ball 2 1vs2, 2vs3, 3vs4, 4vs5 This solution is if you have to compare ball 1 by 1. Otherwise, they may have other solutions...
three pick any two and compare then with any other two if equal weight then the fifth ball is the one else take the heavier lot and compare the two ball if equal weight then the fifth ball is the one otherwise comparethe heavier ball with the fifth ball
They'll put you in a room to answer questions pertaining to the position. However, there staff are .NET programmers trying to learn Magento. The questions they're asking is to help their team deal with existing problems with their code; they have no intention hiring you. You're brought into the process for "intelligence gathering", to solve existing issues for the mess they coded.
See Interview Questions for Similar Jobs
- PHP Developer
- Software Engineer
- Senior Software Engineer
- Web Developer
- Software Developer
- Senior PHP Developer
- PHP Web Developer
- Ruby On Rails Developer
- Senior Web Developer
- Data Analyst
- Senior Software Developer
- Junior Web Developer
- PHP Software Developer
- Software Development Engineer
- Systems Engineer
- Programmer Analyst
- Senior Developer