7 kyu
Substring fun
3,038 of 5,569philb56
Description:
Complete the function that takes an array of words.
You must concatenate the n
th letter from each word to construct a new word which should be returned as a string, where n
is the position of the word in the list.
For example:
["yoda", "best", "has"] --> "yes"
^ ^ ^
n=0 n=1 n=2
Note: Test cases contain valid input only - i.e. a string array or an empty array; and each word will have enough letters.
Arrays
Strings
Fundamentals
Similar Kata:
Stats:
Created | Nov 29, 2015 |
Published | Nov 29, 2015 |
Warriors Trained | 7147 |
Total Skips | 121 |
Total Code Submissions | 11283 |
Total Times Completed | 5569 |
JavaScript Completions | 3038 |
CoffeeScript Completions | 23 |
Ruby Completions | 454 |
Python Completions | 1986 |
C Completions | 121 |
COBOL Completions | 5 |
Java Completions | 106 |
Total Stars | 55 |
% of votes with a positive feedback rating | 93% of 791 |
Total "Very Satisfied" Votes | 697 |
Total "Somewhat Satisfied" Votes | 79 |
Total "Not Satisfied" Votes | 15 |