7 kyu

Substring fun

3,038 of 5,569philb56

Description:

Complete the function that takes an array of words.

You must concatenate the nth 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

More By Author:

Check out these other kata created by philb56

Stats:

CreatedNov 29, 2015
PublishedNov 29, 2015
Warriors Trained7147
Total Skips121
Total Code Submissions11283
Total Times Completed5569
JavaScript Completions3038
CoffeeScript Completions23
Ruby Completions454
Python Completions1986
C Completions121
COBOL Completions5
Java Completions106
Total Stars55
% of votes with a positive feedback rating93% of 791
Total "Very Satisfied" Votes697
Total "Somewhat Satisfied" Votes79
Total "Not Satisfied" Votes15
Ad
Contributors
  • philb56 Avatar
  • joh_pot Avatar
  • anter69 Avatar
  • 1b8 Avatar
  • pioraid Avatar
  • trashy_incel Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • LosBlobbos Avatar
Ad