C
C copied to clipboard
feat(searching): add exponential_search2 with self-tests
#- 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.
- 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.
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.
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!