From b9659f0ae3b4766cccea4f6f62d883cd61f98620 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Sun, 10 Dec 2017 22:57:14 +0800 Subject: avl_tree impl --- Computer_Science/data_structures/chapter_4/print_ascii_tree.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Computer_Science/data_structures/chapter_4/print_ascii_tree.h') 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); -- cgit v1.2.3