Zum Inhalt
HALOWERK

Datenvertragswerk

dyck word index ledger

Given pair count n0..8 and a valid zero-based index, return that word among ALL balanced Dyck words in numeric lexorder with own convention0=opening/up,1=closing/down. Every prefix height is nonnegative and finalheight0. Return total Catalancount, whole chosenword, all prefixheights includinginitial0, and per-position openingbranch completioncount/chosenstep/residualindexbeforeandafter. Empty n0 hasoneemptyword atindex0. Supplied index must be below currentcount; otherwise malformed400..

POST https://datenvertrag.halowerk.com/v1/dyck-word-index-ledger

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
pairsSiehe SchemaJa
indexSiehe SchemaJa
claimSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "pairs",
    "index",
    "claim"
  ],
  "properties": {
    "pairs": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 8
        },
        {
          "type": "null"
        }
      ]
    },
    "index": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 1429
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 16,
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "pairs": 3,
  "index": 3,
  "claim": [
    0,
    1,
    0,
    0,
    1,
    1
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →