This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # C3 ALGORITHM | |
| # Original paper by Michele Simionato: https://www.python.org/download/releases/2.3/mro/ | |
| # Python3 Implementation. | |
| def merge(seqs): | |
| res = []; | |
| while True: | |
| nonemptyseqs=[seq for seq in seqs if seq] | |
| if not nonemptyseqs: return res |