5 kyu
Merged String Checker
1,622 of 9,441Abbe
Description:
At a job interview, you are challenged to write an algorithm to check if a given string, s
, can be formed from two other strings, part1
and part2
.
The restriction is that the characters in part1
and part2
should be in the same order as in s
.
The interviewer gives you the following example and tells you to figure out the rest from the given test cases.
For example:
'codewars' is a merge from 'cdw' and 'oears':
s: c o d e w a r s = codewars
part1: c d w = cdw
part2: o e a r s = oears
Strings
Algorithms
Similar Kata:
Stats:
Created | Jan 29, 2015 |
Published | May 25, 2015 |
Warriors Trained | 44631 |
Total Skips | 10686 |
Total Code Submissions | 273369 |
Total Times Completed | 9441 |
Java Completions | 1622 |
Clojure Completions | 128 |
JavaScript Completions | 2693 |
CoffeeScript Completions | 28 |
Python Completions | 2993 |
C# Completions | 1146 |
Haskell Completions | 434 |
PHP Completions | 185 |
COBOL Completions | 5 |
C Completions | 149 |
C++ Completions | 272 |
Total Stars | 1424 |
% of votes with a positive feedback rating | 82% of 1205 |
Total "Very Satisfied" Votes | 867 |
Total "Somewhat Satisfied" Votes | 240 |
Total "Not Satisfied" Votes | 98 |