Consultant Java Interview Questions

30,886 consultant java interview questions shared by candidates

You are given 8 identical looking balls. One of them is heavier than the rest of the 7 (all the others weigh exactly the same). You a provided with a simple mechanical balance and you are restricted to only 2 uses. Find the heavier ball.
avatar

Java

Interviewed at HCLTech

3.8
Feb 20, 2017

You are given 8 identical looking balls. One of them is heavier than the rest of the 7 (all the others weigh exactly the same). You a provided with a simple mechanical balance and you are restricted to only 2 uses. Find the heavier ball.

You have 25 electronic horses, you don't have any way of measuring time. You have a racetrack with 5 lanes so that you can race the horses against each other. What is the least number of races required to find the top 3 fastest horses?
avatar

Java Developer

Interviewed at Walmart

3.4
Oct 24, 2018

You have 25 electronic horses, you don't have any way of measuring time. You have a racetrack with 5 lanes so that you can race the horses against each other. What is the least number of races required to find the top 3 fastest horses?

Viewing 1501 - 1510 interview questions

Glassdoor has 30,886 interview questions and reports from Consultant java interviews. Prepare for your interview. Get hired. Love your job.