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.
As the only non-bot solving this problem in 2025, I want to let you (the reader) know that the problem statement does not give enough information to actually solve the problem. The clue lies on the statement that both players have access to each other's arrays. This implies that choosing the best move relies on knowing what the other arrays have as well.
I passed the problem to chatGPT and it updated my algorithm to include a bunch of values that I was not aware that I should keep track of, and coincidentally, passed every test. And when I asked it to elaborate and why it included a bunch of variables, it quoted a text from the site, a text that I can't find at all. Even if it's probably made up, it'd be better if I didn't have to pass it to an AI.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Fun Game
You are viewing a single comment's thread. Return to all comments →
As the only non-bot solving this problem in 2025, I want to let you (the reader) know that the problem statement does not give enough information to actually solve the problem. The clue lies on the statement that both players have access to each other's arrays. This implies that choosing the best move relies on knowing what the other arrays have as well.
I passed the problem to chatGPT and it updated my algorithm to include a bunch of values that I was not aware that I should keep track of, and coincidentally, passed every test. And when I asked it to elaborate and why it included a bunch of variables, it quoted a text from the site, a text that I can't find at all. Even if it's probably made up, it'd be better if I didn't have to pass it to an AI.