6 kyu

Transformation iteration

Description:

Write

function transform(source, target){}

that takes in 2 strings and transforms source into the target string.

For example

transform('car','see') === ["car", "sar", "ser", "see"]
transform('floor','brake') === ["floor", "bloor", "broor", "braor", "brakr", "brake"]
transform('kata','math') === ["kata", "mata", "math"]

source and target will always be of the same length

Strings
Fundamentals

Similar Kata:

Stats:

CreatedJan 9, 2017
PublishedJan 9, 2017
Warriors Trained497
Total Skips7
Total Code Submissions1060
Total Times Completed259
JavaScript Completions259
Total Stars11
% of votes with a positive feedback rating95% of 66
Total "Very Satisfied" Votes59
Total "Somewhat Satisfied" Votes7
Total "Not Satisfied" Votes0
Total Rank Assessments9
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • joh_pot Avatar
  • docgunthrop Avatar
  • farhanaditya Avatar
Ad