Pergunta de entrevista da empresa LinkedIn

1st round (phone screening): 1. WAP to implement pow(a,b) function. 2. WAP to build a BST.

Resposta da entrevista

Sigiloso

17 de mar. de 2014

1- Brute-force: Run a loop and multiplying 'a' 'b' times. O(n) 2- Use recursive approach. (Checkout : https://www.youtube.com/results?search_query=power%20functions%20algorithms&sm=3)

1