aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-125/roger-bell-west/postscript/ch-2.ps24
1 files changed, 0 insertions, 24 deletions
diff --git a/challenge-125/roger-bell-west/postscript/ch-2.ps b/challenge-125/roger-bell-west/postscript/ch-2.ps
index 94731bac34..175b9e02ef 100644
--- a/challenge-125/roger-bell-west/postscript/ch-2.ps
+++ b/challenge-125/roger-bell-west/postscript/ch-2.ps
@@ -1,29 +1,5 @@
%! no DSC
-% def btd(tree)
-% st=tree.length
-% depth=Array.new(st,0)
-% diameter=Array.new(st,0)
-% (st-1).downto(0) do |i|
-% if tree[i] != 0 then
-% a=i*2+1
-% b=a+1
-% if b < st then
-% depth[i]=1+[depth[a],depth[b]].max
-% diameter[i]=[
-% 1+depth[a]+depth[b],
-% diameter[a],
-% diameter[b],
-% ].max
-% else
-% depth[i]=1
-% diameter[i]=1
-% end
-% end
-% end
-% return diameter[0]
-% end
-
/max2 {
dup % a b b
3 2 roll % b b a