Jump to content

Arvores n-arias-duvida????


FSaraiva
 Share

Recommended Posts

Boa noite

Será que alguém me podia ajudar com este problema

Tenho de definir um novo tipo polimórfico Tree α para representar árvores n-árias (ou seja, cada

nó tem um número arbitrário de filhos) e depois definir a função  size:: Tree a -> Int

que me retorna número de elementos armazenados na árvore.

Eu tenho uma noção mas como é um tipo tree estou um pouco à nora.

Agradecia imenso ajuda :wallbash:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.