Problem 111. Find matching parenthesis
Solution Stats
Problem Comments
-
3 Comments
wondering if there is a place I can review the submitted solution source codes? I think this is a great place to learn about matlab programming.
@Qianqian Fang: once you've solved a problem, click on the solution map (containing all the green circles and orange x's). On that separate page you can click on each of the shapes to view each solution below the chart.
somehow i get that s='()' is there something wrong with the test suite?
Solution Comments
-
1 Comment
第一次解决问题时,想了很长时间....然并卵
第二次看这个问题,十分钟内解决
-
1 Comment
It is curious that many solutions checks the "direction" of given parenthesis to find it's pair.
-
1 Comment
wow I don't find the words to comment this solution except who can read that?!!
-
2 Comments
Wonderful solution.
Technically, I don't understand where ans is created. If I break this code, I obtain an error (ans is undefined). It seems that the line 4 create ans but only in the function (?).
Hi Jean-Marie. I haven't bee around for some time now. Well, that turned out to be a bug...
http://www.mathworks.com/matlabcentral/answers/46972-is-this-a-possible-matlab-bug-further-strange-behavior
-
1 Comment
Brilliant !!!
-
1 Comment
vectors, schmectors!
Problem Recent Solvers274
Suggested Problems
-
135 Solvers
-
Back to basics 9 - Indexed References
427 Solvers
-
1143 Solvers
-
Determine the number of odd integers in a vector
601 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
845 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!