We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I don't (yet) know much about how lazy valuation works. So I have a doubt about how this code is evaluated.
Can someone explain if the factorials here are being calculated from 1 for each y? I'm assuming x**y are being calculated from scatch each time, I would also like to know if I'm wrong about that.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Evaluating e^x
You are viewing a single comment's thread. Return to all comments →
I don't (yet) know much about how lazy valuation works. So I have a doubt about how this code is evaluated.
Can someone explain if the factorials here are being calculated from 1 for each y? I'm assuming x**y are being calculated from scatch each time, I would also like to know if I'm wrong about that.