Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια
σε

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

Παρουσίαση με Ετικέτες

Όλες οι Ετικέτε... » Binary-Tree » Haskell   (RSS)
Λυπούμαστε, αλλά υπάρχουν άλλα διαθέσιμες Ετικέτες για να φιλτράρετε με αυτές.
  • Find max height of bin Tree

    There is a need to find the height of a binary tree. Meaning beginning from root (0),  the maximum hopes to ''highest'' leaf.Having the definition: data Tree a = Node a (Tree a) (Tree a) | Emptyshowing a Tree could be a node with two (node or empty ) or empty, the following recursive algorithm takes six lines of code in Haskell: height tree ...
    Δημοσιεύτηκε στο count zero (Weblog) από το μέλος napoleon στις Απριλίου 9, 2010
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems