Skip to content

Conversation

@Akshaygagrani
Copy link
Contributor

The idea is to compare x with the first element in arr[]. If an element is found at first position, return it. Else recur for remaining array and x.

The idea is to compare x with the first element in arr[]. If an element is found at first position, return it. Else recur for remaining array and x.
…ay to Recursive_program_to_line_rly_search_an_element_in_given_array.c
@Souravirus
Copy link
Owner

@Akshaygagrani , I guess this is a program for linear search. I will advise you to put in searching and also name the program as linear search, so that program would be easily searchable. I will then merge your commit.

@Akshaygagrani Akshaygagrani changed the title Recursive program to linearly search an element in a given array linearly search programme Nov 2, 2017
@Akshaygagrani Akshaygagrani changed the title linearly search programme linear search Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants