Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 465. Dick Van Dyck?

  • Not the celebrity, Dick Van Dyke,
  • this problem relates to balanced strings of parentheses, Dyck Language.
  • Please attach the depth value and a space next to each parenthesis according to following style.
  • For example, change '<(DVD)[MTM]>' to '<1 (2 DVD 2)[2 MTM 2] 1>'.
  • Please try a general solution, the test suite may expand.

Problem Group

Solution Statistics

17 correct solutions 17 incorrect solutions
Last solution submitted on Mar 06, 2015