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

 

tmhscs@gmail.com lists > list_containsValue
prev  |  next  |  chance

Given a list of integers and a target value, return true if the target value is anywhere in the list. Return false if the target value is not in the list.


list_containsValue([3, 5, 8, 2], 1) → false
list_containsValue([1, 6, 9, 4, 2], 3) → false
list_containsValue([7, 2, 3], 7) → true

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

public boolean list_containsValue(List<Integer> list, int value) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy