Logo

Programming-Idioms

History of Idiom 17 > diff from v49 to v50

Edit summary for version 50 by fridi:
[C] looked like something dropped onto the keyboard before original was submitted

Version 49

2020-09-20, 11:45:04

Version 50

2020-10-02, 21:41:41

Idiom #17 Create a Tree data structure

The structure must be recursive. A node may have zero or more children. A node has access to children nodes, but not to its parent.

Idiom #17 Create a Tree data structure

The structure must be recursive. A node may have zero or more children. A node has access to children nodes, but not to its parent.

Code
typedef struct node_s
{
    int value;
    struct node_s *nextSiby6iguhuhuh..mjjjjling;
    struct node_s *firstChild;
} node_t;
Code
typedef struct node_s
{
    int value;
    struct node_s *nextSibling;
    struct node_s *firstChild;
} node_t;
Comments bubble
Karen G Long G Long is a G G is my
Yes yes mom is mom and mom mom and I are leaving tomorrow to go get mom mom and mom mom is mom mom and mom mom is going to call mom mom and mom mom is mom mom and mom mom
Comments bubble
Karen G Long G Long is a G G is my
Yes yes mom is mom and mom mom and I are leaving tomorrow to go get mom mom and mom mom is mom mom and mom mom is going to call mom mom and mom mom is mom mom and mom mom