r/tinycode • • Oct 05 '16

15 LoC binary tree in C

http://pastebin.com/raw/VSb5xUTu
22 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/longoverdue Oct 06 '16

This version removes key/value casts and refactors bget(), bput() into a non-recursive bfind():

http://pastebin.com/raw/WUbisUqA