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)
MISSING VALUE Interview Questions
6,571,877 interview questions shared by candidates
Write code to parse a string and count the number of occurrences of each word.
I asked them what the turnover rate was like and if they ever laid anyone off. They seemed to be caught off guard by this question, and were not forthcoming with their answers.
Have you ever lead a team ?
given 8 coins and one of them heavier than the others, how many weighings will be needed to find the odd one ?
What's the best unbiased estimator for a series random variables?
There are two stocks with the same expected value, with variance 0.3 and 0.2 and correlation 0.5. What proportion of each stock do you invest in to yield a minimum risk portfolio?
Do you have infrastructure experience in Qatar
Code Review
Do you have a valid G license?
Viewing 3671 - 3680 interview questions