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.
Random Number Generator
Random Number Generator
Sort by
recency
|
6 Discussions
|
Please Login in order to post a comment
The editorial is reasonably useful, but it's possible to find k in O(1) time (with O(max N) preprocessing, as in the editorial), giving an overall time of O(T + N) using a bit more math. The pattern isn't too hard to see, once you look for it.
Hi everyone, I can't understand this problem. Could you explanation this problem?
Java Import Random Number Generation, more go here
I have solved it and passed all tests. Here is my draft way, which can be understood only for those who really tried to solve it:
Who could please tell me the solution to this problem? Maybe I'm too weak at mathematics :)