Question: in c please I have a sorted array of N lower case names. I think that someone might be listed too many times. I want

 in c please I have a sorted array of N lower

in c please

I have a sorted array of N lower case names. I think that someone might be listed too many times. I want a function that will tell me if some given person is listed at least k times (some given integer). The function should return 1 is the person is contained at least k time, and 0 otherwise. Your program must take O(log(N)) comparisons. You must use the following prototype. int tooMany (int n, char ** arr, char * target, int k)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!