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

 

apcsaArraysDuplicateFinder


Medium difficulty problem. Congratulations on making it here!


Given an array of integers, identify which numbers appear more than once. Return a single String containing each value that occurs more than once, but in the same order as the input.

HINTS: You will need nested loops for this problem, to check each number vs. each other  number.

apcsaArraysDuplicateFinder([3, 4, 3, 6, 4, 3]) → "34343"
apcsaArraysDuplicateFinder([1, 2, 3, 1, 2, 3]) → "123123"
apcsaArraysDuplicateFinder([1, 1, 1, 1]) → "1111"

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

public String apcsaArraysDuplicateFinder(int[] nums) { }

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

Copyright Nick Parlante 2017 - privacy