Game Software Interview Questions

5,239 game software interview questions shared by candidates

Given a positive integer n, you can apply one of the following operations: If n is even, replace n with n / 2. If n is odd, replace n with either n + 1 or n - 1. Return the minimum number of operations needed for n to become 1.
avatar

Unity Game Developer

Interviewed at Moon Active

4
Apr 1, 2022

Given a positive integer n, you can apply one of the following operations: If n is even, replace n with n / 2. If n is odd, replace n with either n + 1 or n - 1. Return the minimum number of operations needed for n to become 1.

Viewing 4411 - 4420 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 5,239 interview questions and reports from Game software interviews. Prepare for your interview. Get hired. Love your job.