about | help | code help+videos | done | prefs |
Return true if the array has at least four consecutive non-zero elements that are equal, and false otherwise. connectFour([3, 2, 2, 2, 2, 8, 11]) → true connectFour([5, 5, 5]) → false connectFour([0, 0, 0, 0, 0, 0]) → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy