7 kyu

String Merge!

2,686 of 6,701cannse

Description:

Given two words and a letter, return a single word that's a combination of both words, merged at the point where the given letter first appears in each word. The returned word should have the beginning of the first word and the ending of the second, with the dividing letter in the middle. You can assume both words will contain the dividing letter.

Examples

("hello", "world", "l")       ==>  "held"
("coding", "anywhere", "n")   ==>  "codinywhere"
("jason", "samson", "s")      ==>  "jasamson"
("wonderful", "people", "e")  ==>  "wondeople"
Strings
Fundamentals

More By Author:

Check out these other kata created by cannse

Stats:

CreatedJul 28, 2017
PublishedJul 28, 2017
Warriors Trained8728
Total Skips138
Total Code Submissions13994
Total Times Completed6701
Python Completions2686
JavaScript Completions2669
Java Completions1058
PHP Completions266
Ruby Completions103
C Completions103
Total Stars58
% of votes with a positive feedback rating94% of 1173
Total "Very Satisfied" Votes1046
Total "Somewhat Satisfied" Votes110
Total "Not Satisfied" Votes17
Total Rank Assessments41
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • cannse Avatar
  • jhoffner Avatar
  • ZozoFouchtra Avatar
  • Unnamed Avatar
  • anter69 Avatar
  • siebenschlaefer Avatar
  • adrian.eyre Avatar
  • Blind4Basics Avatar
  • Voile Avatar
  • HDdo Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • sid114 Avatar
  • saudiGuy Avatar
Ad