Akram Rakhmetulla
Akram Rakhmetulla
Would be nice to add tests too
Hi @Stillswarm ! Any update here?
Hi, please feel free to draft the PR, and we can review it together from there. Just keep in mind any potential licensing obligations.
Thanks for the PR! The algorithm seems to be correct, but there are a couple of integer overflow issues that need to be fixed first before merging: 1) L, R,...
Clarify the φ(n) computation in the text description - right now it's underspecified. Move the relevant notes from comments into the main text so they're not overlooked. Also include the...
> The idea is b only needs to be calculated mod phi(m) I think this is explained in https://cp-algorithms.com/algebra/phi-function.html, and the rest should be straightforward to derive.
Everything looks pretty consistent to me. Can you point to specific parts you don't understand?
Stack overflow is not a problem in combinatorial games problems, and obviously DFS and BFS are both linear time. However, I think BFS implementation would still be useful in this...
What is the source for your proof and code?
I'm asking because the proof looks suspiciously too polished (and likely AI-generated) so I wanted to know if there's some source for this proof. Also, I suggest to add `!!!...