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.
However still it is far from being perfect due to repeted computation of fatorials... there must be some way how to reuse computations from previous levels. I will try to find it on another day.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Pascal's Triangle
You are viewing a single comment's thread. Return to all comments →
I found easier and cleaner solution. Probably also faster thanks to my "if".
However still it is far from being perfect due to repeted computation of fatorials... there must be some way how to reuse computations from previous levels. I will try to find it on another day.