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