From 62886f842bcb91f8367217da8b9662cefbd3088f Mon Sep 17 00:00:00 2001 From: Roger Bell_West Date: Mon, 9 Aug 2021 18:29:58 +0100 Subject: syntax --- challenge-125/roger-bell-west/postscript/ch-2.ps | 24 ------------------------ 1 file changed, 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 -- cgit