99 questions/Solutions/58

From HaskellWiki
< 99 questions‎ | Solutions
Revision as of 21:44, 13 July 2010 by Wapcaplet (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

(**) Generate-and-test paradigm

Apply the generate-and-test paradigm to construct all symmetric, completely balanced binary trees with a given number of nodes.

symCbalTrees = filter symmetric . cbalTree