阿摩線上測驗 登入

最新科目

最新試卷

115年 - 115 原住民族特種考試_三等_各類科:基礎能力測驗(英文)#144566(20題)

115年 - 115 外交特種考試_三等_外交領事人員類科土耳其文組:外國文(含新聞書信撰寫與編譯)(土耳其文)#144565(23題)

115年 - 115 原住民族特種考試_三等_農業技術:試驗設計#144564(8題)

115年 - 115 原住民族特種考試_四等_各類科:基礎能力測驗(英文)#144563(21題)

115年 - 115 原住民族特種考試_三等_土木工程:土壤力學#144562(15題)

115年 - 115 國際經濟商務特種考試_三等_國際經濟商務人員類科國際經貿法律組:英文(含國際貿易政策與法規命令之摘譯與論述)#144561(42題)

115年 - 115 原住民族特種考試_三等_土木工程:測量學#144560(8題)

115年 - 115 台灣自來水公司股份有限公司_評價職位人員甄試試題_技術士操作類-乙(淨水、管線、水源)、技術士操作類-乙(淨水、管線、水源) (特殊)、技術士操作類-乙(淨水、管線、水源)(限原住民族報考):專業科目B_自來水工程概要#144559(50題)

115年 - 115 台灣自來水公司股份有限公司_評價職位人員甄試試題_技術士裝修類-甲(新裝、修漏)、技術士裝修類-甲(新裝、修漏)(限原住民族報考)、技術士裝修類-乙(檢漏):專業科目B-配管與儀器操作原理#144558(50題)

115年 - 115 國際經濟商務特種考試_三等_國際經濟商務人員類科西班牙文組:外國文(西班牙文)#144557(23題)

最新試題

最新申論題

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;}

最新課程

最新主題筆記

最新討論