Daedalean Interview Question

How to implement the exp function in an efficient way