House voted 403-12 Thursday to extend and expand the tax credit# Living
m*f
1 楼
CLRS 10.4.5
Write an O(n)-time nonrecursive procedure that, given an n-node binary tree,
prints out the key of each node. Use no more than constant extra space
outside of the tree itself and do not modify the tree, even temporarily,
during the procedure.
no recursive...O(1) space...cannot modify tree...
Write an O(n)-time nonrecursive procedure that, given an n-node binary tree,
prints out the key of each node. Use no more than constant extra space
outside of the tree itself and do not modify the tree, even temporarily,
during the procedure.
no recursive...O(1) space...cannot modify tree...