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

 

orion.a.smith@gmail.com apcsa-lists > apcsaListOthersContained
prev  |  next  |  chance

Given an ArrayList of Strings, return true if every character in each String appears at least once in at least one of the other Strings in the list; return false if at least one character only appears in one of the input Strings. Precondition: the input list will have at least two elements.


apcsaListOthersContained(["hi", "hello"]) → false
apcsaListOthersContained(["hi", "hello", "help", "phi", "hole"]) → true
apcsaListOthersContained(["hello", "world"]) → false

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

public boolean apcsaListOthersContained(ArrayList<String> lst) { }

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: 220

Copyright Nick Parlante 2017 - privacy