๐Ÿงช Challenges

De-dupling numbers from array

Challenge 7 - Medium

Description

The idea here is that we are going to get an array of numbers, those numbers can be duplicated and are not going to be in a specific order. For example:

0 1 const input = [1, 9, 7, 5, 4, 4, 9, 12, 6, 8, 8, 4, 9, 3, 2]

Objective

We want to return an object with three arrays in it:

  • multiple an array of the numbers that are duplicated.
  • only_once an array of the numbers that appear only once.
  • unique an array of the numbers without that appear, without their dupesnpm.
๐Ÿ›๏ธ ๐Ÿงฎ ๐Ÿ“ โš›๏ธ ๐Ÿงช ๐Ÿ