Posts by Nathan Martins • 53 points
3 posts
-
1
votes5
answers8188
viewsA: Best factor calculation algorithm
Dude you can do recursive. Int FatorialRecursivo(int num){ If(num==1) || (num==o) return 1; else return FatorialRecursivo(n-1)*n; } I’m sorry the half messed up code I’m answering by APP, anything…
-
1
votes1
answer1505
viewsA: How do I get this list double-chained and circulated?
Next the last element has to point to the list head and the list head to the last element,you can grab the list head pointer by taking the field next to the penultimate element of the list.
-
0
votes1
answer98
viewsA: row on c doubt
This you want to do hurts the queue implementation, because in the queue can only be removed the first one in the queue and the insertion is done at the end of the queue. Anyway, for this problem,…
canswered Nathan Martins 53