8 kyu
Remove duplicates from list
473 of 39,930wichu
Description:
Define a function that removes duplicates from an array of non negative numbers and returns it as a result.
The order of the sequence has to stay the same.
Examples:
Input -> Output
[1, 1, 2] -> [1, 2]
[1, 2, 1, 1, 3, 2] -> [1, 2, 3]
Fundamentals
Arrays
Lists
Similar Kata:
Stats:
Created | Aug 6, 2016 |
Published | Aug 6, 2016 |
Warriors Trained | 54857 |
Total Skips | 2139 |
Total Code Submissions | 115827 |
Total Times Completed | 39930 |
Haskell Completions | 473 |
Python Completions | 12749 |
F# Completions | 229 |
JavaScript Completions | 22433 |
C# Completions | 1878 |
C Completions | 485 |
Ruby Completions | 887 |
TypeScript Completions | 875 |
COBOL Completions | 4 |
Scala Completions | 70 |
Java Completions | 771 |
Total Stars | 396 |
% of votes with a positive feedback rating | 93% of 3293 |
Total "Very Satisfied" Votes | 2886 |
Total "Somewhat Satisfied" Votes | 339 |
Total "Not Satisfied" Votes | 68 |