題組內容

Please answer the following questions. For answers in code, any programming language (but not mixed) or pseudocode is allowed.(60%)

3. A sequence of numbers {1, 5, 9, 18, 25, 36, 42, 74, 89, 97} is in an array b. Please draw the procedure of finding the number 18 using binary search (10%) and write down the corresponding code using recursion. (10%)

詳解 (共 1 筆)

黎慶噎
黎慶噎
詳解 #5275216
2021/12/24
1. (0+9)/2 = 4 A[4...
(共 374 字,隱藏中)
前往觀看