Java Software Developer Interview Questions

4,188 java software developer interview questions shared by candidates

Game: Initially starting with 1 Two Steps 1.Increment the number by 1, x = x + 1 2.Double the number , x = x * 2 Step 2 can be used atmost maxStepTwoTimes Find the minimum number of steps to reach a number N Example N=19 maxStepTwoTimes=2 Increment 1 ,3 times ,result into 4 Double 4 ,becomes 8 Increment by 1, becomes 9 Double 9 ,becomes 18 Increment by 1 , becomes 19 total Steps 7 NOTE: This is almost same as "Number Line Jumps" in hanckerrank. I wrote code , initially it has some bugs. I modified it .But he is not satisified with my code.
avatar

Senior Software Engineer - Java

Interviewed at Ezetap

4.2
Mar 7, 2022

Game: Initially starting with 1 Two Steps 1.Increment the number by 1, x = x + 1 2.Double the number , x = x * 2 Step 2 can be used atmost maxStepTwoTimes Find the minimum number of steps to reach a number N Example N=19 maxStepTwoTimes=2 Increment 1 ,3 times ,result into 4 Double 4 ,becomes 8 Increment by 1, becomes 9 Double 9 ,becomes 18 Increment by 1 , becomes 19 total Steps 7 NOTE: This is almost same as "Number Line Jumps" in hanckerrank. I wrote code , initially it has some bugs. I modified it .But he is not satisified with my code.

Viewing 431 - 440 interview questions

Glassdoor has 4,188 interview questions and reports from Java software developer interviews. Prepare for your interview. Get hired. Love your job.