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

 

tlsmith2@wsfcs.k12.nc.us > array1DDupWords
prev  |  next  |  chance

Given an array of words, return true if the array contains duplicate words and return false otherwise.


array1DDupWords(["cat", "hat", "cat", "bat"]) → true
array1DDupWords(["fog", "dog", "bog"]) → false
array1DDupWords(["net", "net", "wet"]) → true

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

public boolean array1DDupWords(String[] words)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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: 10 Post-solution available

Copyright Nick Parlante 2017 - privacy