Interactive Tutorial
Fast Fourier
Transform Lab
An interactive competitive programming tutorial for the Fast Fourier Transform.
Overview
The Problem
Multiplying Polynomials
Given two polynomials, find their product — a fundamental operation in signal processing, convolution, and competitive programming.
A(x)=1 + 2x + 3x²
B(x)=4 + 5x
C(x)=A(x) · B(x)=4 + 13x + 22x² + 15x³
Each output coefficient is a sum of products:
C[k] = Σ A[i] · B[k-i]
Explore the lab
Everything you need to master the Fast Fourier Transform.
Learn
Interactive visualizations and a written article walking through DFT, the Cooley-Tukey algorithm, and NTT.
Trace
Step through recursive and iterative FFT with live variable inspection and highlighted code.
Practice
Built-in Python/C++ editor, Codeforces problem links, and a live naive-vs-FFT benchmark.
Resources
Competition-ready code templates, key formulas, and common implementation pitfalls.
Assignment mapping
Find the right section for each part of the tutorial.