Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and rename Binary_search.cpp to Update BinarySearch.md #340

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

Ruksina01
Copy link
Contributor

— Optimized binary search algorithm for both time and space complexity.
— Time complexity: O(log n) for efficient element search in a sorted array.
— Space complexity: Recursive approach incurs O(log n) space due to recursion stack.
— Optimization: Iterative version preferred for space efficiency with O(1) space complexity.

— Time complexity remains O(log n).
— Recursive approach uses extra space: O(log n) due to call stack.
— Iterative approach preferred for space optimization: O(1) space complexity.
@panditakshay402 panditakshay402 self-requested a review October 12, 2024 05:14
Copy link
Owner

@panditakshay402 panditakshay402 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ruksina01 kindly Follow Rules from Readme.md to get you PR merged.

@Ruksina01
Copy link
Contributor Author

@panditakshay402
I read the README.md, but I’m still unclear on the changes I need to make. Could you please clarify?

@panditakshay402 panditakshay402 merged commit 4e774f0 into panditakshay402:main Oct 12, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants