Can You Solve This Popular Software Job Interview Coding Challenge? [Power Function]

The other day I was talking to a coworker and he was telling me about a job interview that he just did. Our company is currently hiring a lot of software developers.

He’s a more experienced software developer than me so I was curious to hear what kinds of questions he usually asks interviewees. He said that his favorite question to ask our interviewees is to code the power function.

The power function is just a function that you use in your program to calculate an exponent. In that function, you give two input numbers: a base number and then the exponent number. Then, it returns the calculation. Here’s an example: pow(2,3) = 8

So why does my coworker like to ask this question when it comes to job interviews?

He said it’s because when you ask this question to an interviewee you can really tell what kind of programmer he or she is based on how he or she answers the question.

In this video, I’ll be sharing:
✅ a simple way to implement this function
✅ why the simple implementation is bad
✅ helpful tips on how to approach coding challenges in software job interviews

📰 Article:
Why do we need to ask for implementing Power function in interviews

Hope this helps!
-Henrik