• + 0 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...