about | help | code help+videos | done | prefs |
twoOnes
Given an array of ints, return true if two 1s appear next to each other in the array somewhere. twoOnes([1, 1, 2, 3, 1]) → true twoOnes([1, 2, 4, 1]) → false twoOnes([1, 2, 1, 2, 3, 1, 1]) → true ...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: 173
Copyright Nick Parlante 2017 - privacy