Problem

Return true if some i has arr[i]==arr[i+1].

Examples

  • hasAdjacentEqual([1, 1, 2]) -> true
Compile and test (Ctrl+Enter)