diff options
| author | Steve Lee <me@xiangyangli.com> | 2017-12-10 22:57:14 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2017-12-10 22:57:14 +0800 |
| commit | b9659f0ae3b4766cccea4f6f62d883cd61f98620 (patch) | |
| tree | d485d99ac36651950a58f9867619eb3bd77143b2 /Computer_Science/data_structures/chapter_4/print_ascii_tree.h | |
| parent | 1ab42d462e335898902c6513c7f71c5a591c945a (diff) | |
| download | 42-b9659f0ae3b4766cccea4f6f62d883cd61f98620.tar.xz 42-b9659f0ae3b4766cccea4f6f62d883cd61f98620.zip | |
avl_tree impl
Diffstat (limited to 'Computer_Science/data_structures/chapter_4/print_ascii_tree.h')
| -rw-r--r-- | Computer_Science/data_structures/chapter_4/print_ascii_tree.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Computer_Science/data_structures/chapter_4/print_ascii_tree.h b/Computer_Science/data_structures/chapter_4/print_ascii_tree.h index 12eed6a..1ddfa3b 100644 --- a/Computer_Science/data_structures/chapter_4/print_ascii_tree.h +++ b/Computer_Science/data_structures/chapter_4/print_ascii_tree.h @@ -1,12 +1,21 @@ +/* +** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +** !!!Code originally from /http://www.openasthra.com/c-tidbits/printing-binary-trees-in-ascii/ +** !!! Just saved it, cause the website is down. +** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +** I use it here for learning. +*/ #ifndef _PRINT_ASCII_TREE_H #define _PRINT_ASCII_TREE_H struct asciinode_struct; typedef struct asciinode_struct asciinode; -typedef SearchTree Tree; #define MAX_HEIGHT 1000 + +#ifndef INFINITY #define INFINITY (1 << 20) +#endif int MIN (int X, int Y); int MAX (int X, int Y); |
