Treapold
A balanced binary tree data structure, expected to have logarithmic height.
Install / Use
/learn @stathat/TreapoldREADME
treap
This Go package provides a balanced binary search tree data structure, expected to have logarithmic height.
For more on treaps, check out the following links:
This implementation borrows a lot of ideas from GoLLRB.
Installation
Use goinstall:
goinstall github.com/stathat/treap
That's it.
If you are building your code with goinstall, you can skip the previous step and just
import treap as follows:
import (
"github.com/stathat/treap"
)
Usage
Examples available at www.stathat.com/src/treap.
Status
This package was extracted from production code powering StatHat, so clearly we feel that it is production-ready, but it should still be considered experimental as other uses of it could reveal issues we aren't experiencing.
Contact us
We'd love to hear from you if you are using this in your projects! Please drop us a line: @stat_hat or contact us here.
About
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
