卷別
資料結構與演算法(A)
選擇國立臺灣大學 2021 · 考試 · 第 4 題
考科演算法
(5 points) 承 snake sequence 題(網格如下,格座標依題目 定義: 為行方向索引、 為列方向索引,均由 0 起算):
9, 6, 5, 2
8, 7, 6, 5
7, 3, 1, 6
1, 1, 1, 7
The last number of the maximum-length snake sequence is?
- (A)9(0,0)
- (B)6(3,2)
- (C)7(3,3)
- (D)1(2,3)
- (E)7(0,2)