Unique array elements (Chars Mode)
Featured
๐ Description
Given an array of random numbers, return all each unique number only once.
๐ฅ Input
Type: number[]
A array of random numbers.
๐ค Output
Type: number[]
A array with duplicates filtered out.
๐งช Sample Test Cases
Input:
[1, 1, 2, 4, 6, 4]
Output:
[1, 2, 4, 6]
Input:
[5, 5, 5]
Output:
[5]
+ 1 more test cases will be used for validation