Git Product home page Git Product logo

awais's Projects

binarysearch icon binarysearch

Implementation of Binary Search Write a C program to implement Binary Search Algorithm. Include a function int BinarySearch (int, int, int *, int x) --- The 1st parameter is the lower limit of the list or array, the 2nd parameter is the upper limit of the list or array, the third parameter is a pointer to the array and the fourth parameter is the search element. Please note that the index of the search element is returned by the function. If the search element is not present in the array, -1 is returned. Assume that the maximum size of the array is 10 . Please note that if a is the array, then a[0] is in position 0, a[1] is in position 1 ... Input and Output Format: Refer sample input and output for formatting specifications. Sample Input and Output 1: [All text in bold corresponds to input and the rest corresponds to output.] Enter the number of elements : 5 Enter the elements : 12 16 23 45 67 Enter the element to be searched : 23 The element 23 is in position 2 Sample Input and Output 2: [All text in bold corresponds to input and the rest corresponds to output.] Enter the number of elements : 5 Enter the elements : 12 16 23 45 67 Enter the element to be searched : 28 The element 28 is not present in the array

binarysearch-1 icon binarysearch-1

Developed a C++ program to demonstrate Binary Search in an array of numbers.

linq icon linq

Linq for list comprehension in C++

website icon website

The code which powers jacobtomlinson.dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.