8 kyu

Removing Elements

29,936 of 82,315MorgzC41

Description:

Take an array and remove every second element from the array. Always keep the first element and start removing with the next element.

Example:

["Keep", "Remove", "Keep", "Remove", "Keep", ...] --> ["Keep", "Keep", "Keep", ...]

None of the arrays will be empty, so you don't have to worry about that!

Lists
Arrays
Fundamentals

Stats:

CreatedJun 21, 2016
PublishedJun 21, 2016
Warriors Trained123401
Total Skips9054
Total Code Submissions210186
Total Times Completed82315
Python Completions29936
JavaScript Completions41404
Ruby Completions2004
C# Completions3257
Scala Completions545
PHP Completions1645
C Completions853
Rust Completions1333
Java Completions2737
COBOL Completions9
Haskell Completions68
BF Completions10
Total Stars829
% of votes with a positive feedback rating93% of 6142
Total "Very Satisfied" Votes5348
Total "Somewhat Satisfied" Votes708
Total "Not Satisfied" Votes86
Ad
Contributors
  • MorgzC41 Avatar
  • jhoffner Avatar
  • zebulan Avatar
  • Unnamed Avatar
  • GiacomoSorbi Avatar
  • aryan-firouzian Avatar
  • Chrono79 Avatar
  • lilsweetcaligula Avatar
  • Madjosz Avatar
  • hobovsky Avatar
  • xavierguihot Avatar
  • vbevdev Avatar
  • trashy_incel Avatar
  • kirull Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • tobeannouncd Avatar
  • Just4FunCoder Avatar
  • KayleighWasTaken Avatar
  • luis.bg Avatar
  • saudiGuy Avatar
Ad