• + 0 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.