阿摩線上測驗 登入

申論題資訊

試卷:102年 - 102 國立中山大學_碩士班招生考試_電機系(丙組):資料結構#110205
科目:中山◆電機◆資料結構
年份:102年
排序:4

申論題內容

2. [5 points] Consider the following function F written in a C-like pseudo-code, which takes an array A of n positive integers and an initially-empty stack S as input parameters:
  62f4b9e0f0c34.jpg
What is the output (returned value) of the function F for the array A= [2, 14, 4, 7, 11, 18, 10, 15, 6, 23, 12, 8]?