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.

Solution Stats

50.0% Correct | 50.0% Incorrect
Last solution submitted on Jun 07, 2016

Problem Comments

Solution Comments

Discover MakerZone

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

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!

Join the 15-year community celebration.

Play games and win prizes!

Learn more