Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Implement Linear Search #5289

Open
harshraj8843 opened this issue Jan 15, 2024 · 2 comments
Open

Implement Linear Search #5289

harshraj8843 opened this issue Jan 15, 2024 · 2 comments
Labels
auto-track Good First Issue Tracker program

Comments

@harshraj8843
Copy link
Contributor

harshraj8843 commented Jan 15, 2024

Description

Write a program to implement linear search

Linear search is a very simple search algorithm. In this type of search, a sequential search is made over all items one by one. Every item is checked and if a match is found then that particular item is returned, otherwise the search continues till the end of the data collection.

Linear search is the simplest search algorithm. For this reason, it is often called sequential search.

Pseudocode

procedure linear_search (list, value)

   for each item in the list
      if match item == value
         return the item's location
      end if
   end for

end procedure

Example

list = [1,2,3,4,5]
value = 4

Output : 3
### Tracking Issues
- [ ] #5291
- [ ] #5292
- [ ] #5293
- [ ] #5294
- [ ] #5295
- [ ] #5296
- [ ] #5297
- [ ] #5298
- [ ] #5299
- [ ] #5300
- [ ] #5301
- [ ] #5302
- [ ] #5303
- [ ] #5304
- [ ] #5305
- [ ] #5306
- [ ] #5307
- [ ] #5308
- [ ] #5309
- [ ] #5310
@harshraj8843 harshraj8843 added the auto-track Good First Issue Tracker label Jan 15, 2024
@codinasion-bot
Copy link

👋🏻 Hey @harshraj8843

💖 Thanks for opening this issue 💖

A team member should be by to give feedback soon.

@codinasion-bot codinasion-bot bot added the triage Waiting for review label Jan 15, 2024
@harshraj8843 harshraj8843 added program and removed triage Waiting for review labels Jan 15, 2024
@khizer-flow
Copy link
Contributor

!assign

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-track Good First Issue Tracker program
Projects
None yet
Development

No branches or pull requests

2 participants