Anonymous user
Same fringe: Difference between revisions
m
→version 1.1: removed OVERFLOW from the PRE html tagm, indented and changed section header comments.
(+ third D entry) |
m (→version 1.1: removed OVERFLOW from the PRE html tagm, indented and changed section header comments.) |
||
Line 1,697:
===version 1.1===
This REXX example is a re-written program that mimics the first version (above).
<br><br>
:::* elided a subroutine
:::* elided superfluous
:::* elided some stemmed array tails
:::* elided some REXX variables (lvl, debug,
:::* simplified some stem names
:::* displays the tree (as an ASCII display)
:::* changed ''tree'' names so as to not conflict with ''leaf'' names
:::* uses non-case
:::* used boolean based variables as ''logicals''
:::* expanded
:::*
<lang rexx>/*REXX pgm examines leaves of two binary trees. Tree used is as above.*/
_=left('',28); say _ ' A A '
Line 1,797:
return</lang>
'''output'''
<pre>
A A
/ \ ◄────1st tree / \
|