Problem

Return true if the array contains two 3s next to each other.

Examples

  • hasAdjacentThrees([1, 3, 3, 2]) -> true
  • hasAdjacentThrees([3, 1, 3]) -> false
  • hasAdjacentThrees([4, 5]) -> false
Compile and test (Ctrl+Enter)