6 kyu
Extract last names of people named Michael
Description:
Given a text, for example:
const inputText = "Michael, how are you? - Cool, how is John Williamns and Michael Jordan? I don't know but Michael Johnson is fine. Michael do you still score points with LeBron James, Michael Green AKA Star and Michael Wood?";
get an array of last names of people named Michael. The result should be:
["Jordan", "Johnson", "Green", "Wood"]
Notes:
- First name will always be Michael with upper case 'M'.
- There will always be a space character between 'Michael' and last name.
- Last name will always be one word, starting with an upper-case letter and continuing with lower-case letters.
- There will always be at least one 'Micheal' with a valid last name in the input text.
Regular Expressions
Algorithms
Data Structures
Arrays
Similar Kata:
Stats:
Created | Oct 19, 2016 |
Published | Oct 19, 2016 |
Warriors Trained | 1841 |
Total Skips | 50 |
Total Code Submissions | 3032 |
Total Times Completed | 959 |
JavaScript Completions | 959 |
Total Stars | 57 |
% of votes with a positive feedback rating | 94% of 221 |
Total "Very Satisfied" Votes | 195 |
Total "Somewhat Satisfied" Votes | 26 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 9 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |