01 April 2017

areEquallyStrong

My solution:
bool areEquallyStrong(int yourLeft, int yourRight, int friendsLeft, int friendsRight) 
{
    return Math.Max(yourLeft, yourRight) == Math.Max(friendsLeft, friendsRight) && Math.Min(yourLeft, yourRight) == Math.Min(friendsLeft, friendsRight);
}

Previous Next