Computer Science, asked by kashafmustafa321, 7 months ago

Identify the data structures used in the algorithm
#include<iostream>
using namespace std;
int myfun(const char list[], char key, int listSize)
{
int low = 0;
int high = listSize - 1;
while (high >= low) {
int mid = (low + high) / 2;
if (key < list[mid])
high = mid - 1;
else if (key == list[mid])
return mid;
else
low = mid + 1;
} ​

Answers

Answered by mrunalinividya
0

Answer:

#include <iostream>. #include "stats.h" using namespace std; int main() { vector<double> data = { 1, 2, 3 }; cout << mean(data) << endl;. }.

Explanation:

Similar questions
Math, 7 months ago