Quick actions

cmd+k|ctrl+k

Navigation

Languages

Binary Search Tree

Snippet info

Language

Haskell

Visibility

public

Author

homam

Created

2020-02-14T00:23:59Z

Updated

2020-02-14T00:27:34Z

import Tree (fromList, contains, balance, pretty)

main = do
    let bst = balance $ fromList [2,125,10,1, 10::Int]
    print $ contains 126 bst
    pretty bst " "
INFO