Compiler code

would output be the longest length of first valid expression?

no, length of the biggest valid expression. Eg, if input is “<<<>>>” then output is 6, if it’s “<><><>” then its 6 too, not 2 as you understand it.

1 Like