Stem-and-leaf plot: Difference between revisions
Content added Content deleted
(→{{header|ALGOL 68}}: replace as to not depend on some random guy's utility library. if the code is needed for the solution, it should be explicitly in it. This solution avoids sorting altogether.) |
|||
Line 227: | Line 227: | ||
PROC stem and leaf plot = ([]INT data)VOID: |
PROC stem and leaf plot = ([]INT data)VOID: |
||
BEGIN |
BEGIN |
||
# get |
# get lowest and highest stem values # |
||
INT min stem := data[LWB data] % 10, |
INT min stem := data[LWB data] % 10, |
||
max stem := data[LWB data] % 10; |
max stem := data[LWB data] % 10; |