8 kyu

Remove duplicates from list

461 of 38,323wichu

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:

CreatedAug 6, 2016
PublishedAug 6, 2016
Warriors Trained52554
Total Skips2090
Total Code Submissions111685
Total Times Completed38323
Haskell Completions461
Python Completions12063
F# Completions226
JavaScript Completions21849
C# Completions1793
C Completions461
Ruby Completions880
TypeScript Completions797
COBOL Completions4
Scala Completions65
Java Completions581
Total Stars374
% of votes with a positive feedback rating93% of 3224
Total "Very Satisfied" Votes2827
Total "Somewhat Satisfied" Votes332
Total "Not Satisfied" Votes65
Ad
Contributors
  • wichu Avatar
  • natan Avatar
  • suic Avatar
  • anter69 Avatar
  • Chrono79 Avatar
  • lilsweetcaligula Avatar
  • Blind4Basics Avatar
  • barakplasma Avatar
  • Voile Avatar
  • Madjosz Avatar
  • Denis Kuznetcov Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • kirull Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • KayleighWasTaken Avatar
  • HartlIKS Avatar
Ad