Hi, I was having a try at this code golf problem 'Remove unmatched brackets': https://codegolf.stackexchange.com/questions/245625/remove-unmatched-brackets
I know the classic 'check if brackets are matched' has a nice APL solution but the additional complication of needing to remove the unmatched brackets has me struggling.
In a non-array language I would do this with a stack and push/pop elements. Is this a problem where it looks like it's necessary to use recursion ∇? Or is there probably a nice non-recursive array solution I haven't found yet?