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.
He used the math multiplication method we used everyday when it's come to multiply two more-than-one-digit number:
abc * ef = abc * e * 10 + abc * f .
His approach is based on that but he's done it reversely.
The way he did it is really clever!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Extra Long Factorials
You are viewing a single comment's thread. Return to all comments →
He used the math multiplication method we used everyday when it's come to multiply two more-than-one-digit number: abc * ef = abc * e * 10 + abc * f . His approach is based on that but he's done it reversely. The way he did it is really clever!