This sounds either like an XY Problem or like homework. Perhaps you should paint the broarder picture for us so we understand better what you are after?
It seems it doesn't matter what order the list elements occur in so long as they alternate from list A and list B. Can the lists have duplicate entries (either between lists, or within a list)? Is it guaranteed that the lists differ by no more than 1 in the number of their elements?
In reply to Re: interleaved lists check
by GrandFather
in thread interleaved lists check
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |