Select ALL the statements that can be used in BinarySearch method to find the mid index given the first and last index.
Posted: Thu Jul 14, 2022 2:12 pm
Select ALL the statements that can be used in BinarySearch method to find the mid index given the first and last index. int mid = first + (last − first )/2 int mid = (first + last )/2 int mid = first /2+ last /2 int mid = (int)(first /2.0+ last /2.0)