Skip to content

Latest commit

 

History

History

removingElements

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Removing Elements

8 kyu link to kata
my solution

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!