[PR #883] [MERGED] feat: Add the Sentinel Search algorithm #1402

Open
opened 2026-01-29 15:20:12 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/883
Author: @ReganYue
Created: 10/13/2021
Status: Merged
Merged: 10/15/2021
Merged by: @Panquesito7

Base: masterHead: ReganYue


📝 Commits (7)

  • 3fb5adc Create sentinel_linear_search.c
  • d6df456 Update sentinel_linear_search.c
  • 2f0d9e0 updating DIRECTORY.md
  • c4feee1 Merge branch 'TheAlgorithms:master' into ReganYue
  • dc38f33 Apply suggestions from code review
  • 7624e02 Update sentinel_linear_search.c
  • 5c24900 Apply suggestions from code review

📊 Changes

2 files changed (+82 additions, -0 deletions)

View changed files

📝 DIRECTORY.md (+1 -0)
searching/sentinel_linear_search.c (+81 -0)

📄 Description

This is a search algorithm that uses sentinels.

Description of Change

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/883 **Author:** [@ReganYue](https://github.com/ReganYue) **Created:** 10/13/2021 **Status:** ✅ Merged **Merged:** 10/15/2021 **Merged by:** [@Panquesito7](https://github.com/Panquesito7) **Base:** `master` ← **Head:** `ReganYue` --- ### 📝 Commits (7) - [`3fb5adc`](https://github.com/TheAlgorithms/C/commit/3fb5adc52455db9f0e05270e316fd1ff836e3b43) Create sentinel_linear_search.c - [`d6df456`](https://github.com/TheAlgorithms/C/commit/d6df456de5c8adba739af0e10795c512088eca82) Update sentinel_linear_search.c - [`2f0d9e0`](https://github.com/TheAlgorithms/C/commit/2f0d9e04c9df22da90838707b78c81ddb7f3addc) updating DIRECTORY.md - [`c4feee1`](https://github.com/TheAlgorithms/C/commit/c4feee144c562fbcc6905f5365afbaaba41f9d4f) Merge branch 'TheAlgorithms:master' into ReganYue - [`dc38f33`](https://github.com/TheAlgorithms/C/commit/dc38f330b1900158336a398eb992a10b1e48947e) Apply suggestions from code review - [`7624e02`](https://github.com/TheAlgorithms/C/commit/7624e0205e3eb0487d1578d6b4f59e50ee5f54f7) Update sentinel_linear_search.c - [`5c24900`](https://github.com/TheAlgorithms/C/commit/5c24900f3df08923c79e9e410b2b8e032d105467) Apply suggestions from code review ### 📊 Changes **2 files changed** (+82 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `DIRECTORY.md` (+1 -0) ➕ `searching/sentinel_linear_search.c` (+81 -0) </details> ### 📄 Description This is a search algorithm that uses sentinels. #### Description of Change <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md --> #### References <!-- Add any reference to previous pull-request or issue --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/883"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:20:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1402