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;
}

Comments

Popular posts from this blog

Perfect Peak of Array

Is Rectangle?

Sort array with squares!