You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )
std::string nimbleGame(std::vector<int> _squares){ int binSum = 0; for(auto i = 0; i != _squares.size(); ++i){ if(_squares[i] % 2 == 1){ binSum ^= i; } } return binSum ? "First" : "Second"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Nimble Game
You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )