id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

simona1@sfusd.edu morearraylist > list123
prev  |  next  |  chance

Given an ArrayList of Integers, return true if the sequence of numbers 1, 2, 3 appears in the ArrayList somewhere.


list123([1, 1, 2, 3, 1]) → true
list123([1, 1, 2, 4, 1]) → false
list123([1, 1, 2, 1, 2, 3]) → true

...Save, Compile, Run (ctrl-enter)

public boolean list123(ArrayList<Integer> theList){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 175

Copyright Nick Parlante 2017 - privacy