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

 

konstans@stuy.edu > deleteDuplicates
prev  |  next  |  chance

Given an ArrayList of strings, remove any string that occurs at a previous index of the ArrayList.


deleteDuplicates(["a", "a", "a", "a", "b", "a", "c", "b"]) → ["a", "b", "c"]
deleteDuplicates(["c", "a", "a", "a", "a", "f", "b", "a", "c", "b"]) → ["c", "a", "f", "b"]
deleteDuplicates(["a", "a", "a", "a", "a", "a"]) → ["a"]

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

public List<String> deleteDuplicates(List<String> words){ }

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