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