#3274

Check if Two Chessboard Squares Have the Same Color

newbie · 265 · lc easy +19 · 72.3% accepted · 142 likes · top 82%

Description

You are given two strings coordinate1 and coordinate2 representing chessboard squares (letter + digit on an 8x8 board). Return true if both squares share the same color.

Code

1
2
3