cmatrix.find_max¶
- cmatrix.find_max()¶
Search into the list of list containing all the claiming sequences the longest one.
Parameters
type
Description
liste
list
A list of list to treat
- Returns
- list
A list containing the longest list found
Examples
>>> l=[1,2,3,5,6,3,5,6,3,5,6] >>> m=create_mutants(l) >>> print(m) [[2, 3, 5, 6, 3, 5, 6, 3, 5, 6], [3, 5, 6, 3, 5, 6, 3, 5, 6], [5, 6, 3, 5, 6, 3, 5, 6], [6, 3, 5, 6, 3, 5, 6], [3, 5, 6, 3, 5, 6], [5, 6, 3, 5, 6], [6, 3, 5, 6], [3, 5, 6], [5, 6], [6]] >>> find_max(m) [2, 3, 5, 6, 3, 5, 6, 3, 5, 6]