Commit d500ff38 authored by Pokala Mohith's avatar Pokala Mohith

add API and data read

parents
#include<iostream>
#include "searching.h"
using namespace std;
#include <vector>
int main(){
int n;cin>>n;
vector<int> a;
int temp;
for(int i=0;i<n;i++){
cin>>temp;
a.push_back(temp);
}
int num;cin>>num;
if(search_custom(a,num))
cout<<"Found"<<endl;
else
cout<<"Not Found"<<endl;
}
#include <vector>
#include<iostream>
using namespace std;
bool search_custom( std::vector<int> , int);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment