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.
I solved it using C++. Basically you just have to implement the Random class from java. It's a waste of time, but I did it as an exercise...
It gave me headaches until I realized java and c++ don't use the same length for long integers...had to use long long.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
PRNG Sequence Guessing
You are viewing a single comment's thread. Return to all comments →
I solved it using C++. Basically you just have to implement the Random class from java. It's a waste of time, but I did it as an exercise... It gave me headaches until I realized java and c++ don't use the same length for long integers...had to use long long.