Problem 70. Alphabetize by last name
39.74% Correct | 60.26% Incorrect
Last Solution submitted on Jun 08, 2023
Show 3 older comments
Swapnali Gujar on 11 Mar 2014
looks like there is problem with the 2nd test case result. The 'Cleve Molar' is shifted by 1 space in the ans
Wei-Rong Chen on 7 Apr 2015
This problem can be trickier if the input can allow different styles of name representation, e.g., 'FirstName LastName' and 'LastName, FirstName'.
Sanzhar Askaruly on 7 Jul 2019
be careful with 'John F. Kennedy' case..
Banister on 28 Jul 2019
The change in output format was a pain !
Bryan Lambo on 20 Dec 2019
This blew my mind. Finally got it.
Ahmed Nazir on 30 Sep 2020
Be careful with output format...
if length(alpha_list) > 5
alpha_list = alpha_list';
Solution CommentsShow comments
Problem Recent Solvers1983
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!