L Lê Như Ý New member Sep 16, 2021 #1 Given, arr = {1,3,5,6,7,9,14,15,17,19} key = 17 and delta = {5,3,1,0} How many key comparisons are made?(exclude the comparison used to decide the left or right sub array) A. 4 B. 3 C. 5 D. 6
Given, arr = {1,3,5,6,7,9,14,15,17,19} key = 17 and delta = {5,3,1,0} How many key comparisons are made?(exclude the comparison used to decide the left or right sub array) A. 4 B. 3 C. 5 D. 6
P Phương Linh New member Sep 16, 2021 #2 Answer: B Explanation: Tracing with the above code, comparison #1: i=4, comparison #2: i=7, comparison #3: i=8 Upvote 0 Downvote
Answer: B Explanation: Tracing with the above code, comparison #1: i=4, comparison #2: i=7, comparison #3: i=8