algorithm-in-python/algorithm/dynamic-programming/matrix-multiply.py
mbinary c56126992c b tree ✌️
2018-08-29 15:52:02 +08:00

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