You are viewing a single comment's thread. Return to all comments →
C# short:
public static string verticalRooks(List<int> r1, List<int> r2) { return r1.Select((n,i)=>Math.Abs(n-r2.ElementAt(i))-1).Aggregate((cur,next)=>cur^next) == 0 ? "player-1" : "player-2"; }
...as always.
Seems like cookies are disabled on this browser, please enable them to open this website
Vertical Rooks
You are viewing a single comment's thread. Return to all comments →
C# short:
...as always.