dynamic_programming.minimum_cost_path ===================================== .. py:module:: dynamic_programming.minimum_cost_path Functions --------- .. autoapisummary:: dynamic_programming.minimum_cost_path.minimum_cost_path Module Contents --------------- .. py:function:: minimum_cost_path(matrix: list[list[int]]) -> int Find the minimum cost traced by all possible paths from top left to bottom right in a given matrix >>> minimum_cost_path([[2, 1], [3, 1], [4, 2]]) 6 >>> minimum_cost_path([[2, 1, 4], [2, 1, 3], [3, 2, 1]]) 7