mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-04-20 12:29:34 +00:00
[PR #1391] [CLOSED] Implement rotated_search and iterative exponential binary search functions #1988
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/1391
Author: @GziXnine
Created: 5/7/2024
Status: ❌ Closed
Base:
master← Head:GziXnine📝 Commits (2)
8c5feb0feat: Implement iterative exponential binary search following C standarda71ad81feat: Implement rotated_search function📊 Changes
2 files changed (+253 additions, -0 deletions)
View changed files
➕
searching/exponential_search2.c(+136 -0)➕
searching/rotated_search.c(+117 -0)📄 Description
This pull request adds two new features to the project:
1 - Implement rotated_search function:
Introduces a new function rotated_search in rotated_search.c for efficiently searching in rotated sorted arrays.
The function is implemented following the algorithm described in the GeeksforGeeks article linked in the file header.
Self-test cases are included to validate the correctness of the implementation.
2 - Implement iterative exponential binary search following C standard:
Adds an implementation of iterative exponential binary search in a separate commit.
The implementation adheres to the C standard and provides efficient searching capabilities.
Each commit is structured following the commit guidelines provided.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.