Zeuthen: Writing a C library, part 1
Posted Jul 3, 2011 8:14 UTC (Sun) by
vlovich (guest, #63271)
In reply to:
Zeuthen: Writing a C library, part 1 by njs
Parent article:
Zeuthen: Writing a C library, part 1
I'm not understanding the claims that it takes anything other than O(n) in the worst case for a tree de-allocation.
function destroy_tree(tree) {
foreach child in tree
delete_tree(child)
free(tree)
}
(
Log in to post comments)