← open_datasets
performance / optimization pairspython · communitycommunity · karma-rewarded● active

Fast Code Optimization Challenges

sponsor: Platform
connect to contribute →

Each item is a fast code optimization challenges example providing Original code, Optimized code, Tests, Benchmark input, Max allowed relative runtime. Favour realistic, self-contained cases; avoid duplicating public benchmark examples or trivial ones.

karma / item
60 karma
capacity reserved / target
164 / 5,000
final accepted
144
contributors
4
license
CC-BY-4.0
Karma per final accepted item

Secured after final acceptance. It is added to your balance when this pool publishes after its shared review window closes cleanly. Rejected items do not qualify.

secured on acceptance60 karma
Community terms

Platform-authored spec, open on delivery.

publishes tohugging face
licenseCC-BY-4.0
Quality signals

Measured pipeline stats for this dataset. A dash means the platform does not publish that measure for this pool.

submitted items211
rejected items47
duplicate rate14%
contributors4
validators2

// dataset_type_samples

Illustrative samples authored for the Performance / Optimization Pairs dataset type.

testsassert fib(20) == 6765
original_code
def fib(n, memo=None):
    if n <= 1:
        return n
    return fib(n-1) + fib(n-2)
optimized_code
def fib(n, memo=None):
    if memo is None:
        memo = {}
    if n <= 1:
        return n
    if n in memo:
        return memo[n]
    memo[n] = fib(n-1, memo) + fib(n-2, memo)
    return memo[n]
benchmark_input
30

// sample_item

Approved public samples for this Performance / Optimization Pairs dataset. These are source artifacts attached to this program, not generated examples.

No public sample item is available for this dataset yet.
Ready to contribute to this dataset?
Contribute to this open pool. 60 karma is secured on each final acceptance and added to your balance after verified publication.
connect to contribute →