Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Given two cells on the standard chess board, determine whether they have the same color or not.
  2.  
  3. ## Example
  4.  
  5. For `cell1 = "A1"` and `cell2 = "C3"`, the output should be
  6. `chessBoardCellColor(cell1, cell2) = true`.
  7.  
  8. For `cell1 = "A1"` and `cell2 = "H3"`, the output should be
  9. `chessBoardCellColor(cell1, cell2) = false`.
  10.  
  11. ## Input/Output
  12.  
  13. * [time limit] 4000ms (py3)
  14.  
  15. * [input] string cell1
  16.  
  17. * [input] string cell2
  18.  
  19. * [output] boolean
  20.  
  21. true if both cells have the same color, false otherwise.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement