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

 

commonEndList


Given 2 ArrayLists of ints, a and b, return true if they have the same first element or they have the same last element. Both arrays will be size 1 or more.


commonEndList([1, 2, 3], [7, 3]) → true
commonEndList([1, 2, 3], [7, 3, 2]) → false
commonEndList([1, 2, 3], [1, 3]) → true

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

public boolean commonEndList(ArrayList<Integer> a, ArrayList<Integer> b) { }

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

Copyright Nick Parlante 2017 - privacy