[PR #1516] feat(searching): add exponential_search2 with self-tests #2129

Closed
opened 2026-01-29 15:29:11 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/TheAlgorithms/C/pull/1516

State: closed
Merged: No


#- What: Add searching/exponential_search2.c as an alternative exponential search implementation with Doxygen header and assert-based self-tests.

  • Why: Complement existing exponential_search.c with clear range expansion and bounded binary search; verifies edge cases.
  • Tests: Includes assert tests for present/absent values, boundaries, and empty input.
  • Build: Picked up by searching/CMakeLists.txt via glob; C11 compliant; no external deps.
**Original Pull Request:** https://github.com/TheAlgorithms/C/pull/1516 **State:** closed **Merged:** No --- #- What: Add searching/exponential_search2.c as an alternative exponential search implementation with Doxygen header and assert-based self-tests. - Why: Complement existing exponential_search.c with clear range expansion and bounded binary search; verifies edge cases. - Tests: Includes assert tests for present/absent values, boundaries, and empty input. - Build: Picked up by searching/CMakeLists.txt via glob; C11 compliant; no external deps.
claunia added the pull-request label 2026-01-29 15:29:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#2129