You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions, feel free to give a star :) )
std::string pokerNim( int _additionsLimit , std::vector<int> _chips ){ auto binSum = 0; for(auto const & size : _chips){ binSum ^= size; } return binSum ? "First" : "Second"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Poker Nim
You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions, feel free to give a star :) )