Sparse-table range minimum: Examples & Code
Sparse-table range minimum: Build the range-query structure and answer an inclusive query. Static minimum queries; updates are not supported. Explore a worked…
Explore algorithm visualizations code snippets and tutorials
Sparse-table range minimum: Build the range-query structure and answer an inclusive query. Static minimum queries; updates are not supported. Explore a worked…
Segment tree range sum: Build the range-query structure and answer an inclusive query. Optionally set one array value before querying. Explore a worked…
Fenwick tree range sum: Build the range-query structure and answer an inclusive query. Optionally set one array value before querying. Explore a worked…
Miller–Rabin primality test: Use deterministic bases 2 and 3 for the bounded domain n ≤ 9999. This bound is part of the contract. Explore a worked example,…
Segmented prime sieve: Sieve only a bounded interval using primes up to the square root of its upper bound. Explore a worked example, complexity and tested…