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.
Briliant! I use brute tree generation. If I use recursive, it will time out for some tests cases. Then, I change to loop and it works fine. However, your solution is really more of insight about the pattern or internal relation of final results.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Manasa and Stones
You are viewing a single comment's thread. Return to all comments →
Briliant! I use brute tree generation. If I use recursive, it will time out for some tests cases. Then, I change to loop and it works fine. However, your solution is really more of insight about the pattern or internal relation of final results.