| about | help | done | prefs | create account |
Java > Array-1 > commonEnd
prev | next | chance
| Given 2 arrays 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 length 1 or more.
commonEnd({1, 2, 3}, {7, 3}) → true commonEnd({1, 2, 3}, {7, 3, 2}) → false commonEnd({1, 2, 3}, {1, 3}) → true ...Save, Compile, Run See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops |
Forget It! -- delete my code for this problem
New just for fun
Random User Progress Graphs
Random Epic Graphs
112.0
Copyright Nick Parlante 2006-11 - privacy