阿摩線上測驗 登入

申論題資訊

試卷:109年 - 109 高雄醫學大學_學士後醫學系招生考試:計算機概論與程式設計#86938
科目:研究所、轉學考(插大)、學士後-計算機概論
年份:109年
排序:0

申論題內容

1. Given integers m, n, and an integer array arr[m][n] filled with non-negative integers, use dynamic programming technique to implement a program to find a path from top-left to bottom-right which minimizes the sum of all numbers along the path. You can only move down or right at any point. Your program only needs to output the sum. A sample test case input is given below. Implement your program in C, C++, Java, or Python.5ee5964fe22fc.jpg Note: The sample solution walks from the top-left in the order: 4 → 1 → 1 → 0 → 0 → 4