Skip to content

bcomnes/flattree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌳 flattree

Build Status Go Reportcard GoDoc

A series of functions to map a binary tree to a list. A port of flat-tree to go.

Install

go get github.com/bcomnes/flattree

Usage

You can represent a binary tree in a simple flat list using the following structure

      3
  1       5
0   2   4   6  ...

See Godoc example on godoc.

API

See API example on godoc.

See also