I suspect that a proof of the running time order will concentrate on the expected depth of recursion.
However I believe it will be much harder to prove that the push is O(1) - indeed I suspect it is not - and without that the algorithm as a whole cannot be O(n).
Hugo
In reply to Re^2: Puzzle: The Ham Cheese Sandwich cut.
by hv
in thread Puzzle: The Ham Cheese Sandwich cut.
by Perl Mouse
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |