For 0 to 7 fixed ordered keys0..n-1, construct all binary search-tree shapes who...
https://datenvertrag.halowerk.com/v1/avl-search-tree-shape-inventoryOverview
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 by left and right codes for a node.