7 kyu
Split string by multiple delimiters
390 of 688zofy
Description:
Your task is to write function which takes string and list of delimiters as an input and returns list of strings/characters after splitting given string.
Example:
multiple_split('Hi, how are you?', [' ']) => ['Hi,', 'how', 'are', 'you?']
multiple_split('1+2-3', ['+', '-']) => ['1', '2', '3']
List of delimiters is optional and can be empty, so take that into account.
Important note: Result cannot contain empty string.
Fundamentals
Algorithms
Arrays
Strings
Logic
Similar Kata:
Stats:
Created | Jun 7, 2016 |
Published | Jun 8, 2016 |
Warriors Trained | 1691 |
Total Skips | 50 |
Total Code Submissions | 6259 |
Total Times Completed | 688 |
JavaScript Completions | 321 |
Python Completions | 390 |
Total Stars | 29 |
% of votes with a positive feedback rating | 85% of 189 |
Total "Very Satisfied" Votes | 145 |
Total "Somewhat Satisfied" Votes | 32 |
Total "Not Satisfied" Votes | 12 |