[BUG] Sentinel search contains length comparison #104

Closed
opened 2026-01-29 15:03:32 +00:00 by claunia · 1 comment
Owner

Originally created by @appgurueu on GitHub (Oct 15, 2021).

Description

See 3cfdbb040d (r58105657) - the point of sentinel search is literally to remove that comparison

Expected behavior

No comparison

Actual behavior

One comparison

Possible fix

Remove the if statement and the contained break

Steps to reproduce

None

Context

None

Additional information

No response

Originally created by @appgurueu on GitHub (Oct 15, 2021). ### Description See https://github.com/TheAlgorithms/C/commit/3cfdbb040db7e905b7074340196ddd23ee64fae6#r58105657 - the point of sentinel search is literally to remove that comparison ### Expected behavior No comparison ### Actual behavior One comparison ### Possible fix Remove the `if` statement and the contained `break` ### Steps to reproduce None ### Context None ### Additional information _No response_
claunia added the bug label 2026-01-29 15:03:32 +00:00
Author
Owner

@Panquesito7 commented on GitHub (Oct 15, 2021):

Would you like to work on this, @appgurueu? 🙂

@Panquesito7 commented on GitHub (Oct 15, 2021): Would you like to work on this, @appgurueu? 🙂
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#104