Problem 70. Alphabetize by last name
looks like there is problem with the 2nd test case result. The 'Cleve Molar' is shifted by 1 space in the ans
This problem can be trickier if the input can allow different styles of name representation, e.g., 'FirstName LastName' and 'LastName, FirstName'.
be careful with 'John F. Kennedy' case..
The change in output format was a pain !
This blew my mind. Finally got it.
Be careful with output format...
if length(alpha_list) > 5
alpha_list = alpha_list';
Solution CommentsShow comments
Problem Recent Solvers1982
Program an exclusive OR operation with logical operators
Find the dimensions of a matrix
Return fibonacci sequence do not use loop and condition
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!