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 Solvers276
Suggested Problems
-
Select every other element of a vector
28198 Solvers
-
427 Solvers
-
332 Solvers
-
Least common multiple of many numbers
217 Solvers
-
998 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!