Ad
  • Default User Avatar

    Nice solution! however it works when the input only has two characters "(" and ")", your ternary conditional should be more specified, also it's inefficient the use of "parens.length" within bucle, but beyond that I like it especially the use of "indent>=0" within bucle.