datenvertrag.halowerk.com/v1/avl-search-tree-shape-inventory
For 0 to 7 fixed ordered keys0..n-1, construct all binary search-tree shapes whose left/right subtree heights differ by at most one at every node. Own height convention: empty0, singleton1. Keys are assigned by inorder. Return every root/left/right array indexed by key, all node heights/balances(left minus right), preorder and full shape code. Shape code is preorder: 0 for empty child, 1 followed
POST
https://datenvertrag.halowerk.com/v1/avl-search-tree-shape-inventoryUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://datenvertrag.halowerk.com/v1/avl-search-tree-shape-inventory", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"claimed_codes":["110010100","110011000","110100100","111000100"],"size":4}),
});
console.log(await res.json());Example input
{
"claimed_codes": [
"110010100",
"110011000",
"110100100",
"111000100"
],
"size": 4
}