Courses
LoginStart now
Courses
LoginStart now
+ 1

Remove all duplicates in array.

remove all duplicate numbers in an array test input: {1,2,2,3,3,3,4,4,4,4,5,5,5,5,5} output: 12345

c#java
30th Oct 2017, 10:29 PM
Samuel
Samuel - avatar
2 Answers
+ 7
https://www.google.pl/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/17967114/how-to-efficiently-remove-duplicates-from-an-array-without-using-set&ved=0ahUKEwiJz8mLtJnXAhXI0xoKHRCABK0QjjgIJTAA&usg=AOvVaw3tRAYpdTQ7jSY4lRUch-2p
30th Oct 2017, 10:35 PM
Kamil
Kamil - avatar
+ 1
Insert all into a Set and then convert into an array!
31st Oct 2017, 12:13 AM
Chriptus13
Chriptus13 - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Fix code
0 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
..
1 Votes
Fast coding (mobile)
1 Votes
How can I turn my .py files to .exe files?
1 Votes
Software to write and run codes
1 Votes
Add lua
0 Votes
Beginner_to_SoloLearn
1 Votes
How to learn C++ and how long does it take
1 Votes
Summary please??
0 Votes