Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 635 Bytes

readme.md

File metadata and controls

28 lines (21 loc) · 635 Bytes

AVL-Tree CI status

AVL tree implementation in C++. Done as part of Data Structures course in IIT.

Usage

include <TreeAVL.h>

class CompareByHeight {
	public:
		int operator()(Person& p1, Person& p2) {
			int h1 = p1.getHeight();
			int h2 = p2.getHeight();
			return (h1 - h2);
		}
};
mytree = Tree<CompareByID, Person>)();
myTree.insertVertex(new Person(...))

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT