Programmer Trainee Interview Questions

712,403 programmer trainee interview questions shared by candidates

You are given two integers, p and q. Complete the function calculatePower which takes two integers as arguments and returns p to the power of q, without using the built-in power function. We expect you to do better than O(q). A same input is p = 2 and q = 3, and the corresponding output is 8. Constraints: 0 <= p^q <= ((2^63) - 1)
avatar

Software Developer

Interviewed at AQR Capital Management

4
Jun 21, 2017

You are given two integers, p and q. Complete the function calculatePower which takes two integers as arguments and returns p to the power of q, without using the built-in power function. We expect you to do better than O(q). A same input is p = 2 and q = 3, and the corresponding output is 8. Constraints: 0 <= p^q <= ((2^63) - 1)

Since i have a working experience of 1 year and 3 months, i was told to join as a Fresher, because i haven&#039;t worked professional working experience in Android Development. And for a fresher, salary is quite less as you can expect. But at the end of the day, you are getting paid while you are at learning stage. Should be enough for a fresher only.
avatar

Android Developer

Interviewed at Mantra Labs

3.2
Jul 11, 2015

Since i have a working experience of 1 year and 3 months, i was told to join as a Fresher, because i haven&#039;t worked professional working experience in Android Development. And for a fresher, salary is quite less as you can expect. But at the end of the day, you are getting paid while you are at learning stage. Should be enough for a fresher only.

Viewing 711 - 720 interview questions

Glassdoor has 712,403 interview questions and reports from Programmer trainee interviews. Prepare for your interview. Get hired. Love your job.