Skip to content

feat(searching): add exponential_search2 with self-tests - #1516

Closed
hobostay wants to merge 2 commits into
TheAlgorithms:masterfrom
hobostay:feat/exponential-search-2
Closed

hobostay wants to merge 2 commits into
TheAlgorithms:masterfrom
hobostay:feat/exponential-search-2

Conversation

@hobostay

Copy link
Copy Markdown

#- 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.

@hobostay

Copy link
Copy Markdown
Author
  • Complexity: Time O(log n) via exponential range expansion + binary search; Space O(1) .
  • Edge cases: empty array, out-of-range targets, boundaries covered by asserts.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the Stale label Nov 26, 2025
@github-actions

github-actions Bot commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

Please ping one of the maintainers once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!

@github-actions github-actions Bot closed this Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant