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