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.
Game of Kyles
Game of Kyles
karoyakani + 0 comments The title should read "... Kayles". OEIS A002186 Sprague-Grundy values for the game of Kayles (octal games .77 and .771).
Hasekll excerpt
kayles = (==0) . foldl1 xor . map (grundy!!) grundy = map g [0..] where g 0 = 0 g n = mex n [grundy!!l `xor` grundy!!r | m<-[n-1,n-2],l<-[0..m`div`2],let r=m-l] mex n = minimum . ([1..n] \\)
piyushmishra + 0 comments does dynamic programming work.
skanaley + 0 comments In test case 1, how are the last two "IXIXIII" and "XIIIXIXXIX" wins? And are there different test cases for different languages?
piyushmishra + 0 comments Hi Abhiranjan,
What does it mean if both player play optimally?
spotifypremiumf1 + 0 comments Coming up with your hot favorite article about download free music from hacked Spotify. Similarly, In this tutorial i’m gonna show you to get free music in how to get spotify premium
Load more conversations
Sort 12 Discussions, By:
Please Login in order to post a comment