persistent_array
Perform version-controlled get and set operations on an array using a persistent segment tree, enabling access to and modification of historical array states by version.
Instructions
Persistent array with version-controlled get/set operations using a persistent segment tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| initial | Yes | Initial array values | |
| operations | Yes | Operations: {type:'get'|'set', version, index, value?} |