software engineer interview questions shared by candidates
How many bottles of shampoo are produced in the world a year?
Not enough, apparently.
Let's start with the US market: 300X10^6 people. About 60% use shampoo (others are bald or use soap). They go through about one bottle every two months, so that is about 1.8X10^9. Human population is about 6.6 X 10^9. As far as the undeveloped nations, most people don't use shampoo. The developed world is about four times the size of the US population or approximately 1.2 X 10^9. People in the US wash their hair more than in Europe, but I will neglect this. My estimate is about 5X10^9 bottles.
Enough to wash everyone's hair.
Write a program that given 4 coin denominations and a dollar amount finds the best way to express that amount using the coins given. I.e. you have coins with denominations of 1c, 7c, 13c,19c and you have to express $2.12 with the least number of coins. There is always a 1c coin but the other 3 are arbitrary.
See Interview Questions for Similar Jobs
- Senior Software Engineer
- Software Developer
- Associate Software Engineer
- Java Developer
- Software Development Engineer
- Business Analyst
- Technical Lead
- Trainee Software Engineer
- Software Development Engineer II
- Systems Engineer
- Technical Support Engineer
- QA Engineer
- Software Engineer II
- Project Manager