Small haskell function

Anulowany Opublikowano 7 lat temu Płatność przy odbiorze
Anulowany Płatność przy odbiorze

Write a Haskell function that generates all binary trees with empty leaves of size n.

Then, given a binary tree, write a function that counts the number of leaves and another function that the number of internal nodes.

What do you observe about the two results? Write a short proof by induction as a comment added to your program stating that your observation applies to binary trees of any size.

Haskell

Numer ID Projektu: #12961489

O projekcie

2 ofert Zdalny projekt Aktywny 7 lat temu

2 freelancerów złożyło ofertę za $65 w tym projekcie

xeathprynx

Hello, I am expert in java/c/c++/python/C# and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations Więcej

$30 USD w ciągu 1 dnia
(0 Oceny)
0.4