7 kyu

Double Every Other

155 of 7,286Adam-Morris

Description:

Write a function that doubles every second integer in a list, starting from the left.

Example:

For input array/list :

[1,2,3,4]

the function should return :

[1,4,3,8]
Fundamentals
Lists
Arrays
Algorithms

Stats:

CreatedOct 21, 2016
PublishedOct 21, 2016
Warriors Trained8943
Total Skips80
Total Code Submissions15336
Total Times Completed7286
Haskell Completions155
Python Completions3206
Ruby Completions151
COBOL Completions11
JavaScript Completions2954
Java Completions843
C Completions167
Julia Completions12
λ Calculus Completions6
Lua Completions19
Total Stars45
% of votes with a positive feedback rating92% of 747
Total "Very Satisfied" Votes652
Total "Somewhat Satisfied" Votes72
Total "Not Satisfied" Votes23
Total Rank Assessments8
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Adam-Morris Avatar
  • suic Avatar
  • appleJax Avatar
  • JohanWiltink Avatar
  • Voile Avatar
  • Madjosz Avatar
  • eb110 Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • trashy_incel Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • dfhwze Avatar
  • metatable Avatar
Ad