Skip to content

Conversation

@afurm
Copy link
Contributor

@afurm afurm commented Oct 30, 2025

Summary

  • add interpolation search implementation with interactive CLI helper (searches/interpolation_search.rb)
  • cover success, failure, uniform, empty, and unsorted cases in a dedicated minitest suite (searches/interpolation_search_test.rb)

Testing

  • rake test

- Implemented the interpolation search algorithm in `interpolation_search.rb`.
- Added unit tests for various scenarios including finding existing elements, handling missing elements, empty arrays, uniform values, and unsorted arrays in `interpolation_search_test.rb`.
Copy link
Contributor

@vzvu3k6k vzvu3k6k left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. Overall this looks great!

I just have a minor point I’d like you to address before we merge. Could you please take a look?

@afurm afurm requested a review from vzvu3k6k January 31, 2026 09:41
Copy link
Contributor

@vzvu3k6k vzvu3k6k left a comment

Choose a reason for hiding this comment

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

Thank you for your quick response! The test is also implemented and seems perfect. I'll merge it 🎉

@vzvu3k6k vzvu3k6k merged commit 22f658d into TheAlgorithms:master Jan 31, 2026
1 check passed
@afurm afurm deleted the interpolation-search branch January 31, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants