Does anyone remember how to efficiently solve problems like this:

(I think we have solved similar issues in the past, but I am not
finding the relevant messages.)

Given a list of positions for left and right parenthesis, arranged
in ascending order:

12 34 36 47 70
30 44 54 59 82

Return the positions for the right parenthesis arranged to correspond
with their matching left parenthesis.

30 59 44 54 82

Thank you,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to