I think the correct example solution is {'Y1', 'Y12', 'Y3'}.
Good exercise. Two comments: 1) test case 3 has unbalanced parentheses. 2) Instruction should say that your are expecting results to be returned in sorted order, rather than the order in which they appear in the expression.
Find the sum of the elements in the "second" diagonal
999 Solvers
507 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
282 Solvers
Detect a number and replace with two NaN's
178 Solvers
425 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!