Skip to main content

Ex Remove Duplicates

Description

Get from the user a bunch of numbers until user press 0, and after that, remove the remove duplicates numbers from the original and print out output.

Example

Input - [2,1,1,3,2,7,2,3,8,0]
Output - [2,1,3,7,8]

More challenge

  • Make the same but for strings