摘要:
具体的执行过程,摘自维基百科,很容易懂。http://zh.wikipedia.org/wiki/AVL%E6%A0%91#include <stdio.h>#include <malloc.h>#include <assert.h>typedef int ElementType;typedef struct AvlNode{ /* data */ ElementType element; struct AvlNode* leftChild; struct AvlNode* rightChild;} AvlNode;int max( int a, int b 阅读全文