Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(Search): add Jump Search optimized version (works for descending... #1844

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

Open
jaimin45-art wants to merge 2 commits into TheAlgorithms:master
base: master
Choose a base branch
Loading
from jaimin45-art:feat/jump-search-optimized

Conversation

@jaimin45-art
Copy link

@jaimin45-art jaimin45-art commented Oct 18, 2025

Added Jump Search Optimized Algorithm

Describe your change:

  • Added a new algorithm file: JumpSearchOptimized.js
  • Added corresponding test file: JumpSearchOptimized.test.js
  • Algorithm is an optimized version of Jump Search (reduces comparisons)
  • Included detailed test cases for different scenarios (empty array, element not found, first/last element, etc.)

References:

Checklist:

  • I have read CONTRIBUTING.md
  • This pull request is all my own work — I have not plagiarized.
  • This PR only changes one algorithm and its test file.
  • All filenames follow the PascalCase convention (JumpSearchOptimized.js, JumpSearchOptimized.test.js).
  • Code passes all automated tests.

Fixes: None (new algorithm addition)

Copy link

codecov-commenter commented Oct 18, 2025
edited
Loading

Codecov Report

❌ Patch coverage is 73.77049% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.87%. Comparing base (08d8c6b) to head (dac7b0d).

Files with missing lines Patch % Lines
Search/JumpSearchOptimized.js 72.88% 16 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## master #1844 +/- ##
==========================================
- Coverage 85.91% 85.87% -0.04% 
==========================================
 Files 379 380 +1 
 Lines 19778 19837 +59 
 Branches 3015 3026 +11 
==========================================
+ Hits 16993 17036 +43 
- Misses 2785 2801 +16 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@raklaptudirm raklaptudirm Awaiting requested review from raklaptudirm raklaptudirm is a code owner

@appgurueu appgurueu Awaiting requested review from appgurueu appgurueu is a code owner

At least 2 approving reviews are required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /