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

Implemented FFT convolution and lazy segment tree — fast and efficient #1848

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
jsjgdh wants to merge 1 commit into TheAlgorithms:master
base: master
Choose a base branch
Loading
from jsjgdh:my-new-branch

Conversation

@jsjgdh
Copy link

@jsjgdh jsjgdh commented Oct 23, 2025

Added implementation of FFT (Cooley–Tukey) for polynomial convolution.
Also added a segment tree with lazy propagation for range updates and queries.
I have included test for both and also tested it locally on my machine .

Copy link

Codecov Report

❌ Patch coverage is 98.16514% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.11%. Comparing base (08d8c6b) to head (a1f9075).

Files with missing lines Patch % Lines
Maths/FFT.js 97.36% 4 Missing ⚠️
Trees/SegmentTree.js 97.26% 2 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## master #1848 +/- ##
==========================================
+ Coverage 85.91% 86.11% +0.19% 
==========================================
 Files 379 382 +3 
 Lines 19778 20105 +327 
 Branches 3015 3085 +70 
==========================================
+ Hits 16993 17314 +321 
- Misses 2785 2791 +6 

☔ 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 によって変換されたページ (->オリジナル) /