Function.......

Write a function to search a number from the given ten numbers using binary search,Also Mention what are the predefined conditions before performing binary search, if any?
closed account (z05DSL3A)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
    while(!finished)
    {
        do
        {
            writeCode();
        }while(!stuck);
        
        if(stuck)
        { 
            postCode();
            AskSpecificQuestion();
            GetAnswer();
        }
    }
    HandInCourseWork();
lol
I'd just like to say that I really like this assignment. It has significant relevance where most assignments fall a little short in my opinion. The binary search is a simple and effective way to acquire O( log n ) look ups on average. Cool.
Topic archived. No new replies allowed.