Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate customized segment tree implementations
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-01 | ✗→✗ | = Same ✗ | 2% | 0% |
| case-02 | ✗→✗ | = Same ✗ | -3% | 0% |
| case-03 | ✗→✗ | = Same ✗ | -15% | 0% |
| case-04 | ✗→✗ | = Same ✗ | 6% | 0% |
Generate customized segment tree implementations for various merge functions, with support for lazy propagation and advanced variants.
json{ "type": "object", "properties": { "mergeFunction": { "type": "string" }, "identity": { "type": "string" }, "updateType": { "type": "string", "enum": ["point", "range", "both"] }, "lazyPropagation": { "type": "boolean" }, "variant": { "type": "string", "enum": ["basic", "lazy", "persistent", "2d", "beats"] }, "language": { "type": "string", "enum": ["cpp", "python", "java"] }, "style": { "type": "string", "enum": ["recursive", "iterative"] } }, "required": ["mergeFunction", "identity"] }
json{ "type": "object", "properties": { "success": { "type": "boolean" }, "code": { "type": "string" }, "complexity": { "type": "object" }, "usage": { "type": "string" } }, "required": ["success", "code"] }
Other measured skills in the registry, with their headline benchmark lift.