A list contains the following elements: 22 27 32 45 46 47 65 76 87 88 99 111 211 At the beginning, first = 1, mid = 7 and last = 13. What are the values of first, mid and last respectively after two iterations of the binary search algorithm if the goal is 111? 1. 7 10 13 2. 11 12 13 3. 10 12 13 4. 10 11 13
Comments
Leave a comment