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
Similar Kata:
Stats:
Created | Oct 21, 2016 |
Published | Oct 21, 2016 |
Warriors Trained | 8943 |
Total Skips | 80 |
Total Code Submissions | 15336 |
Total Times Completed | 7286 |
Haskell Completions | 155 |
Python Completions | 3206 |
Ruby Completions | 151 |
COBOL Completions | 11 |
JavaScript Completions | 2954 |
Java Completions | 843 |
C Completions | 167 |
Julia Completions | 12 |
λ Calculus Completions | 6 |
Lua Completions | 19 |
Total Stars | 45 |
% of votes with a positive feedback rating | 92% of 747 |
Total "Very Satisfied" Votes | 652 |
Total "Somewhat Satisfied" Votes | 72 |
Total "Not Satisfied" Votes | 23 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |