Skip to content

Binary Search #373

Merged
Pradeepsingh61 merged 3 commits intoPradeepsingh61:mainfrom
JitinSaxenaa:binarysearch
Oct 3, 2025
Merged

Binary Search #373
Pradeepsingh61 merged 3 commits intoPradeepsingh61:mainfrom
JitinSaxenaa:binarysearch

Conversation

@JitinSaxenaa
Copy link
Contributor

#343

📋 Pull Request Description

What does this PR add?

  • New algorithm implementation
  • Data structure implementation
  • New programming language support
  • Language-specific README
  • Bug fix
  • Documentation improvement
  • Test cases

Algorithm/Feature Details

  • Name: Binary Search
  • Language: C
  • Category: Searching
  • Difficulty Level: Easy (Beginner friendly)
  • Time Complexity: O(log n)
  • Space Complexity: O(1)

Description:
Binary search is an efficient algorithm used to find the position of a target value within a sorted array or list. It works by repeatedly dividing the search interval in half until the target is found or the interval is empty.

Contribution Intent:

  • I would like to implement this algorithm myself
  • I'm requesting this for someone else to implement
  • I need help implementing this algorithm

Testing

  • Code compiles without errors
  • All test cases pass
  • Edge cases handled (e.g., empty array, target not found)
  • Documentation updated

References (Optional)

No references provided.

Code of Conduct

  • I agree to follow this project's Code of Conduct

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

🔍 Duplicate Detection Results

⚠️ Potential Duplicates Found

⚠️ Potential Duplicate: CPP/algorithms/searching/Seacrh/binary_search.cpp
Similar file(s) already exist:

  • CPP/algorithms/searching/Seacrh/binary_search.cpp
  • CPP/algorithms/searching/binary_search.cpp
  • CPP/algorithms/sorting/Binary-Search.cpp

📝 What This Means

We found existing implementations that appear similar to your contribution. This doesn't necessarily mean your PR will be rejected, but please review:

  1. Is this truly a duplicate? Check the existing files to see if they implement the same algorithm
  2. Is your implementation different/better? If so, explain in your PR description:
    • What makes it different
    • Why it's an improvement
    • Any unique features or optimizations
  3. Consider improving existing code instead of adding a duplicate

✅ What To Do Next

  • If it's a duplicate: Consider withdrawing this PR and improving the existing implementation
  • If it's different: Add a clear explanation in your PR description about how it differs
  • If unsure: Ask the maintainers for guidance!

💡 Quality Over Quantity

Remember: One high-quality, unique contribution is worth more than multiple duplicates! 🌟


This is an automated check. Maintainers will make the final decision.

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

🎉 Welcome to Hacktoberfest 2025, @JitinSaxenaa! 🎃

Thank you for your first contribution to our DSA repository! Here's what happens next:

🔍 Automatic Checks

  • Code Validation: Passed
  • 🧪 Compilation Tests: Passed

📋 Next Steps

🎯 Great job! Your code compiled successfully. Maintainers @Karanjot786 and @Pradeepsingh61 will review your PR soon.

🎁 What You Get

  • 🏆 Hacktoberfest Credit: This PR counts toward your 6 PR goal for exclusive T-shirt + Tree!
  • 🌟 Hall of Fame: You'll be featured in our contributors list
  • 📚 Learning: Code review feedback from experienced developers

💡 Tips for Success

  • Follow our Contributing Guidelines
  • Add comments explaining your algorithm
  • Include time/space complexity analysis
  • Test your code before submitting

Welcome to the community! 🚀

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

🤖 Automated PR Status

🔍 Code Validation

Passed - File naming and structure look good!

🧪 Compilation Tests

Passed - All code compiles successfully!

📋 Overall Status

🎉 Ready for Review - Your PR has passed all automated checks!
👥 Maintainers have been notified for review.


This comment was generated automatically. Checks will re-run when you push new commits.

@github-actions github-actions bot requested a review from Karanjot786 October 3, 2025 14:08
@Pradeepsingh61 Pradeepsingh61 merged commit 573edf1 into Pradeepsingh61:main Oct 3, 2025
18 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