• Catalog

    Catalog

    See All
    • Languages
    • Courses

    Languages

    See All
    • C++
    • C#
    • HTML
    • Java
    • JavaScript
    • Python

    Level

    See All
    • Beginner
    • Intermediate
    • Advanced

    Courses

    See All
    • Introduction to Python
    • Introduction to C
    • Introduction to C#
    • Introduction to SQL
    • Introduction to HTML
    • Introduction to CSS
    • Introduction to Java
    • Introduction to JavaScript
    • Introduction to C++
    • Tech for Everyone

    Courses

    See All
    • C# Intermediate
    • Python Intermediate
    • JavaScript Intermediate
    • C++ Intermediate
    • C Intermediate
    • SQL Intermediate
    • Game Development with JS
    • Responsive Web Design
    • Python for Data Science
    • Python for Finance

    Courses

    See All
    • React + Redux
    • Angular + NestJS
    • Python Data Structures
  • Online Compiler
    • HTML
    • CSS
    • Javascript
    • C++
    • C
    • PHP
    • Java
    • Python
    • Swift
    • C#
    • Ruby
    • Node.JS
    • Kotlin
    • jQuery
    • Go
    • R
    • TypeScript
  • Discuss
  • Blog
  • Get Pro
Menu
+ 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
Hot today
Тренажер кода
1 Votes
Adjacent number multiplication in a string.
3 Votes
Failed Test 3 In No Numerals Solution For Code Coach
1 Votes
Are any solutions shorter than mine?
2 Votes
How can i add img on html in solo learn app
1 Votes
Sololearn Bugged??
1 Votes
Swapping the value of two variables without creating a third variable.
1 Votes
help my code does not iterate
0 Votes
Please help me solve this grid problem?
0 Votes
why is this code is not showing the time to it take to finish the process 😒
1 Votes

Languages

  • C++
  • C#
  • HTML
  • Java
  • JavaScript
  • Python

Introduction Courses

  • Introduction to Python
  • Introduction to C
  • Introduction to C#
  • Introduction to SQL
  • Introduction to HTML
  • Introduction to CSS
  • Introduction to Java
  • Introduction to JavaScript
  • Introduction to C++
  • Tech for Everyone
  • Web Development Fundamentals
  • R
  • Data Science
  • Machine Learning
  • Coding for Marketers
  • Kotlin
  • Go
  • PHP
  • Ruby
  • Swift 4

Intermediate Courses

  • C# Intermediate
  • Python Intermediate
  • JavaScript Intermediate
  • C++ Intermediate
  • C Intermediate
  • SQL Intermediate
  • Game Development with JS
  • Responsive Web Design
  • Python for Data Science
  • Python for Finance
  • jQuery

Advanced Courses

  • React + Redux
  • Angular + NestJS
  • Python Data Structures

Community

  • Discuss
  • Code Bits
  • Blog
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeTop LearnersProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn mobile
Made with
by  Sololearn | ©2023