manrajgrover / algorithms-js

Consumable Data Structures and Algorithms library in JavaScript
MIT License
198 stars 129 forks source link

Add interpolation search tests #133

Open jonatan5524 opened 2 years ago

jonatan5524 commented 2 years ago

Description of new feature, or changes

Fix bug in interpolation search where the division is not floored, this is what prevented the 100% coverage and also there are cases where the number were not found (covered in the new test)

adding a test to cover 100% coverage

Checklist

Related Issues and Discussions

making progress in #30

People to notify

@manrajgrover