Programming-Idioms

History of Idiom 17

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.

#Edit dateEdit SummaryAuthor
👁 Δ 52 2020-10-11, 00:22 New Obj-C implementation by user [OC] OC
👁 Δ 51 2020-10-02, 21:42 [C] removed useless comment fridi
👁 Δ 50 2020-10-02, 21:41 [C] looked like something dropped onto the keyboard before original was submitted fridi
👁 Δ 49 2020-09-20, 11:45 [C] Jude Long
👁 Δ 48 2020-04-29, 09:40 [Python] Inheriting from object is redundant in python3 acnebs
👁 Δ 47 2020-04-29, 09:24 [Rust] Box is unnecessary, because Vec already provides an indirection berek
👁 Δ 46 2019-09-29, 15:38 [Fortran] Fixed typo. tkoenig
👁 Δ 45 2019-09-29, 15:14 New Erlang implementation by user [nopeslide] nopeslide
👁 Δ 44 2019-09-27, 22:18 [Rust] The size of `Node` must be known at compile time. Worik
👁 Δ 43 2019-09-27, 10:18 [PHP] Format code snippet to PSR-12 ancarda
👁 Δ 42 2019-09-27, 08:50 New Fortran implementation by user [tkoenig] tkoenig
👁 Δ 41 2019-09-26, 19:52 New Perl implementation by user [foo] foo
👁 Δ 40 2019-09-26, 17:07 [Caml] was not spec andrepd
👁 Δ 39 2019-09-26, 17:05 New Caml implementation by user [andrepd] andrepd
👁 Δ 38 2019-09-26, 15:00 New Scala implementation by user [Lynx] Lynx
👁 Δ 37 2019-01-23, 17:35 New JS implementation by user [1.7.4] 1.7.4
👁 Δ 36 2018-08-29, 20:41 New PHP implementation by user [ricardo_sdl] ricardo_sdl
👁 Δ 35 2018-04-03, 08:28 New Lua implementation by user [Kng] Kng
👁 Δ 34 2017-10-04, 20:22 [Python] fix a typo hnhn
👁 Δ 33 2017-06-12, 15:38 New Scheme implementation by user [Dodopod] Dodopod
👁 Δ 32 2017-05-27, 20:12 New C implementation by user [Dodopod] Dodopod
👁 Δ 31 2016-12-13, 20:58 New Rust implementation by user [sphinxc0re] sphinxc0re
👁 Δ 30 2016-12-04, 21:43 Linked to idiom #9 [Create a Binary Tree data structure] programming-idioms.org
👁 Δ 29 2016-12-04, 21:20 [Go] Slightly better demo programming-idioms.org
👁 Δ 28 2016-12-04, 21:17 New Java implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 27 2016-05-16, 22:02 [Cpp] Changed from [0,2] children to [0, size_t] AllanDeutsch
👁 Δ 26 2016-05-16, 22:00 New Cpp implementation by user [AllanDeutsch] AllanDeutsch
👁 Δ 25 2016-05-16, 21:59 [Csharp] Corrected syntax error programming-idioms.org
👁 Δ 24 2016-05-16, 21:59 [Csharp] Corrected syntax error programming-idioms.org
👁 Δ 23 2016-05-11, 17:55 [Csharp] Corrected syntax error AllanDeutsch
👁 Δ 22 2016-05-02, 12:12 [Go] +Demo programming-idioms.org
👁 Δ 21 2016-05-02, 12:05 Linked to idiom #128 [Breadth-first traversing of a tree] programming-idioms.org
👁 Δ 20 2016-05-02, 12:04 Linked to idiom #18 [Depth-first traversing of a tree] programming-idioms.org
👁 Δ 19 2016-02-21, 00:15 his parent -> its parent (of the node)
👁 Δ 18 2016-02-20, 17:39 New Csharp implementation by user [Marti_2203]
👁 Δ 17 2016-02-18, 16:57
👁 Δ 16 2015-11-30, 12:37
👁 Δ 15 2015-10-31, 16:12
👁 Δ 14 2015-10-29, 14:05
👁 Δ 13 2015-09-13, 17:55
👁 Δ 12 2015-09-13, 17:55
👁 Δ 11 2015-09-03, 17:11
👁 Δ 10 2015-09-03, 03:49
👁 Δ 9 2015-08-23, 23:08
👁 Δ 8 2015-08-23, 22:47
👁 Δ 7 2015-08-23, 11:02
👁 Δ 6 2015-08-23, 11:01
👁 Δ 5 2015-08-20, 18:02
👁 Δ 4 2015-08-20, 15:45
👁 Δ 3 2015-08-20, 15:45
👁 Δ 2 2015-08-20, 15:44
1 2015-05-06, 21:04