Logo

Programming-Idioms

History of Idiom 9 > diff from v14 to v15

Edit summary for version 15 by :
New C implementation by user [chai416]

Version 14

2015-11-30, 12:37:25

Version 15

2016-02-16, 17:08:17

Idiom #9 Create a Binary Tree data structure

The structure must be recursive because left child and right child are binary trees too. A node has access to children nodes, but not to its parent.

Idiom #9 Create a Binary Tree data structure

The structure must be recursive because left child and right child are binary trees too. A node has access to children nodes, but not to its parent.

Code
struct treenode{
int value;
struct treenode* left;
struct treenode* right
}