Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/palindromic-occurrence-tree-audit

For supplied0..32 numeric symbols0..2, constructs every distinct nonempty palindromic factor with its full tokenword, longestproper palindromesuffix link, all inclusive0based occurrence endindices and labeled wraptransitions. Returns longest palindromesuffix node of each nonempty prefix. Canonical nodes0imaginarylength-1 and1emptylength0, remaining sortedby length/tokenlex; roots have no occurrenc

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/palindromic-occurrence-tree-audit

Uptime100% 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/palindromic-occurrence-tree-audit", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claimed":{"nodes":[{"end_indices":[],"id":0,"length":-1,"occurrences":0,"suffix_link":0,"tokens":[],"transitions":[{"symbol":0,"target":2},{"symbol":1,"target":3}]},{"end_indices":[],"id":1,"length":0,"occurrences":0,"suffix_link":0,"tokens":[],"transitions":[]},{"end_indices":[0,2],"id":2,"length":1,"occurrences":2,"suffix_link":1,"tokens":[0],"transitions":[]},{"end_indices":[1],"id":3,"length),
});
console.log(await res.json());

Example input

{"claimed":{"nodes":[{"end_indices":[],"id":0,"length":-1,"occurrences":0,"suffix_link":0,"tokens":[],"transitions":[{"symbol":0,"target":2},{"symbol":1,"target":3}]},{"end_indices":[],"id":1,"length":0,"occurrences":0,"suffix_link":0,"tokens":[],"transitions":[]},{"end_indices":[0,2],"id":2,"length":1,"occurrences":2,"suffix_link":1,"tokens":[0],"transitions":[]},{"end_indices":[1],"id":3,"length