3 ms·
I had about the same LoC for my ruby solution. Time was way longer because I had to read at least three wikipedia articles on various aspects of modulo arithmet
by dschobel 16y ago
I had about the same LoC for my ruby solution. Time was way longer because I had to read at least three wikipedia articles on various aspects of modulo arithmetic after I was so ashamed of my brute force solutions.
Wonder if anyone tried frequency analysis since that should work well on an affine transform...
- ratsbane 16y agoI thought about that inverse modulo thing too, and then I remembered what Falken said... I hope yummyfajitas posts some of the answers.