Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master


latest commit bec960a0eb
Patrick Crosby authored
Octocat-spinner-32 .gitignore updated readme December 12, 2011
Octocat-spinner-32 LICENSE updated readme December 12, 2011
Octocat-spinner-32 updated doc May 23, 2012
Octocat-spinner-32 treap.go updated readme December 12, 2011
Octocat-spinner-32 treap_test.go formatting May 23, 2012


This Go package provides a balanced binary search tree data structure, expected to have logarithmic height.

This is for go version 1.0.

For more on treaps, check out the following links:

This implementation borrows a lot of ideas from GoLLRB by Petar Maymounkov.


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.


Written by Patrick Crosby at StatHat. Twitter: @stat_hat

Something went wrong with that request. Please try again.