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 had an idea to solve this problem using Sprague–Grundy theorem and memoization so that recursion will not be needed, but I do'nt know any of these supported languages can I do it in some other languages like python 3 etc...
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Bitter Chocolate
You are viewing a single comment's thread. Return to all comments →
I had an idea to solve this problem using Sprague–Grundy theorem and memoization so that recursion will not be needed, but I do'nt know any of these supported languages can I do it in some other languages like python 3 etc...