7 kyu
link to kata
my solution
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]
7 kyu
link to kata
my solution
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]