G
Guest
I want to design an algorythm that will test proper nesting of open and
closing chars such as brackets and parens, and then get the appropriate
position of the closeing char. For instance:
In these expamples I want to know which paren closes the first paren
(( ) ( ))
or
(( ))
or the twist
(( )) ( )
closing chars such as brackets and parens, and then get the appropriate
position of the closeing char. For instance:
In these expamples I want to know which paren closes the first paren
(( ) ( ))
or
(( ))
or the twist
(( )) ( )