Junior Java Developer Interview Questions

3,833 junior java developer interview questions shared by candidates

Given a number, n, decide if n is a power of 2. Afterwards he asked me about the complexity of the solution and if I rather keep (Hash, List, etc) all the numbers that are power of 2 (32 ints) instead of performing the calculation.
avatar

Junior Java Developer

Interviewed at Dell Technologies

3.7
Aug 1, 2017

Given a number, n, decide if n is a power of 2. Afterwards he asked me about the complexity of the solution and if I rather keep (Hash, List, etc) all the numbers that are power of 2 (32 ints) instead of performing the calculation.

Viewing 1861 - 1870 interview questions

Glassdoor has 3,833 interview questions and reports from Junior java developer interviews. Prepare for your interview. Get hired. Love your job.