阿摩線上測驗 登入

最新科目

最新試卷

115年 - 115-3合作金庫商業_新進人員甄試試題_一般金融人員_專業科目:含會計學、貨幣銀行學、法律常識(票據法/銀行法)#146331(70題)

115年 - [無官方正解]115-2 保險事業發展中心辦理 _防制洗錢與打擊資恐專業人員測驗試題:防制洗錢與打擊資恐法令及實務#146178(80題)

115年 - 115 高雄醫學大學_學生轉系考試試題︰英文#146089(36題)

115年 - 115 澎湖縣國民小學暨附設幼兒園教師/代理教師甄選試題:幼兒教育專業測驗含國語文#146056(107題)

115年 - 115 中華郵政股份有限公司_職階人員職階晉升甄試試題_專業職(一)晉升營運職:英文#146055(17題)

115年 - 115 國營臺灣鐵路股份有限公司工務處_從業人員甄試試題_第 10 階-助理技術員-土木工程、土木工程(工程實務):結構學概要與鋼筋混凝土學大意#145967(50題)

115年 - 115 國營臺灣鐵路股份有限公司工務處_從業人員甄試試題_第 9 階-技術員-建築工程(古蹟修復實務):建築營造與估價及建築結構系統概要#145961(50題)

115年 - 115 國營臺灣鐵路股份有限公司工務處_從業人員甄試試題_第 8 階-助理工程師-土木工程:鋼筋混凝土學與設計#145958(6題)

115年 - 115 國營臺灣鐵路股份有限公司工務處_從業人員甄試試題_第 9 階-技術員-建築工程(古蹟修復實務):政府採購法概要#145957(50題)

115年 - 115 國營臺灣鐵路股份有限公司工務處_從業人員甄試試題_第 8 階-助理工程師-建築工程:建築營造與估價及建築結構系統#145953(33題)

最新試題

最新申論題

5. (16%) 使用 stack 實作 老鼠走過言問題 (Maze path search),運用 C 語言程式:void path(){ // assume int maze30 and offsets move[8] has been set in main function// typedef struct {int v; int h;} offsets;int i, row, col, nextrow, nextcol, dir, found = 0, top =0, mark30;typedef struct { int row; int col; int dir;} elementelement position, stack[100];mark1 = 1; stack[0].row = 1; stack[0].col = 1; stack[0].dir = 0;//實作以下敘述// Use stack to get current row, col, dir// Use dir to calculate nextrow, nextcol// Use nextrow, nextcol to check this move (1) arrive exit, or// (2) become a legal move; add this move into the stack, or// (3) check other dir}

4. (10%) 使用 queue 實作 level order traversal 轉換,運用以下 C 語言程式:void level_order (tree *root) { //assume root is not nullnode front, rear;//實作以下敘述// visit tree nodes based on level order by using queue// use queue by front, rear, enqueue(&rear, root), root =dequeue(&front)// print the values of tree nodes// describe the ending condition}

3. (8%)使用 linked list 實作 stack,運用以下 C 語言程式:typedef struct node { int value; node *next;}void push (node **top, int new_value) { // assume top is not nullnode new_node = (node ) malloc (sizeof (node));// (A) 實作以下敘述// add new_node to stack by top}int pop (node **top) { // assume top is not nullint value;node deleting_node = top;// (B) 實作以下敘述// remove the deleting node from stack, get the value of deleting nodefree(deleting_node);return value;}

最新課程

最新主題筆記

最新討論