Problem 1686. Generate a melodic contour string matrix
There is an error in the second problem of the test suite (also in the example) with an extra "[" on the second line of the "correct" melody.
Amazing how hard it is to get your test suite right on the first try. Thanks, and it looks like you're in the lead!
The last 3 tests are incorrect.
Dimensions of matrices being concatenated are not consistent.
I admit they look wrong, but the actual text in the MATLAB code runs properly. I just re-scored some answers and they worked fine. It must be some kind of HTML display problem. I'll check into it.
Solution CommentsShow comments
Problem Recent Solvers48
Find state names that start with the letter N
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
More from this Author50
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!