Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
190050084-190050085-git12337
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pokala Mohith
190050084-190050085-git12337
Commits
d500ff38
Commit
d500ff38
authored
Aug 29, 2020
by
Pokala Mohith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add API and data read
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
main.cpp
main.cpp
+19
-0
searching.h
searching.h
+5
-0
No files found.
main.cpp
0 → 100644
View file @
d500ff38
#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
;
}
searching.h
0 → 100644
View file @
d500ff38
#include <vector>
#include<iostream>
using
namespace
std
;
bool
search_custom
(
std
::
vector
<
int
>
,
int
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment