Game of Stones
https://www.hackerrank.com/challenges/game-of-stones-1/problem?h_r=internal-search
string gameOfStones(int n) {
string ans="";
if(n%7==0 || n%7==1) ans+="Second";
else ans+="First";
return ans;
}
https://www.hackerrank.com/challenges/game-of-stones-1/problem?h_r=internal-search
Comments
Post a Comment