Merging some sorted lists with unknown order sequence
Posted
by
Gabriel
on Stack Overflow
See other posts from Stack Overflow
or by Gabriel
Published on 2011-01-10T10:37:11Z
Indexed on
2011/01/10
10:54 UTC
Read the original article
Hit count: 286
I've some sorted lists with variable number of elements. I wold like to merge the lists into one big list which contains all other lists in same order, without duplicates. Example: 1. XS,M,L,XL 2. S,M,XXL 3. XXS,XS,S,L Result: XXS,XS,S,M,L,XL,XXL The function should notify, if there are elements which have ambiguous positions. Here, it would be XXL and I need to specify its position after XL.
© Stack Overflow or respective owner