mirror of
https://github.com/heqin-zhu/algorithm.git
synced 2024-03-22 13:30:46 +08:00
5 lines
140 B
Python
5 lines
140 B
Python
|
def adjustOrd(sizes):
|
||
|
''' adjust the chain-multiply of matrix, sizes=[row1,row2,..,rown,coln]'''
|
||
|
n = len(sizes)
|
||
|
if n<3: return
|