阿摩線上測驗 登入

最新科目

最新試卷

115年 - 115 海岸巡防特種考試_四等_海洋巡護科輪機組:輪機工程概要(包括推進裝置概要、輔機概要與輪機英文)#143388(9題)

115年 - 115 海岸巡防特種考試_五等_海洋巡護:海巡勤務大意與海巡法規大意(包括海岸巡防法、國家安全法、海洋污染防治法、海關緝私條例、中華民國領海及鄰接區法、懲治走私條例、海岸巡防機關器械使用條例、臺灣地區與大陸地區人民關係條例第二章行政與第五章罰則、中華民國專屬經濟海域及大陸礁層法)#143387(50題)

115年 - 115 司法、調查特種考試_三等_司法事務官法律事務組、法院書記官、檢察事務官偵查實務組、法律實務組:刑事訴訟法#143386(2題)

115年 - 115 調查特種考試_三等_財經實務組:經濟學#143385(8題)

115年 - 115 調查特種考試_三等_營繕工程組:結構分析(包括材料力學與結構學)#143384(4題)

115年 - 115 海岸巡防特種考試_三等_各科組別:海巡法規(包括海岸巡防法、國家安全法、海洋污染防治法、海關緝私條例、中華民國領海及鄰接區法、懲治走私條例、海岸巡防機關器械使用條例、臺灣地區與大陸地區人民關係條例第二章行政與第五章罰則、中華民國專屬經濟海域及大陸礁層法)#143383(27題)

115年 - 115 司法特種考試_三等_檢察事務官營繕工程組:政府採購法#143382(4題)

115年 - 115 調查特種考試_三等_調查工作組(選試日文):外國文(日文)#143381(6題)

115年 - 115 調查特種考試_三等_醫學鑑識組:遺傳學#143380(7題)

115年 - 115 海岸巡防特種考試_三等_海洋巡護科輪機組:船用電機與自動控制#143379(4題)

最新試題

最新申論題

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

最新課程

最新主題筆記

最新討論