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.
Just don't get it. In the first test case, answer is 1xN and in the second Nx1, so I just put workaround. If anyone could explain to me why this matters...
Size 42. How it calculates the size?
Could you explain this code please?
It's a cheat, generally used by people who can't figure out how to solve a problem with a real answer.
What is wrong with test 2? It looks the same as my output.
I initially also found that strange. But later I found out the cell structure is different. N by 1 OR 1 by N problem.
Task is done but Test suite is not dynamic
My crazy answer....
Is there a bug in the Test Suite ? I made a code that resulted in the exact ideal answer but the Test has failed!?
I experienced the same thing...was able to generate the output exactly but received a failing score. Did you solve your issue?
Some alternative situations are presented in Problem 44538
( www.mathworks.com/matlabcentral/cody/problems/44538 ) and Problem 44541 ( https://www.mathworks.com/matlabcentral/cody/problems/44541 ).
Simillar solutions are really cool and concise.
Inner product of two vectors
The sum of the numbers in the vector
Side of a rhombus
Wind Chill Computation
Make a checkerboard matrix
Determine whether a vector is monotonically increasing
Remove any row in which a NaN appears
Read a column of numbers and interpolate missing data
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office