Comments on: Binary Tree (+ Java Code Examples) https://www.happycoders.eu/algorithms/binary-tree-java/ Wed, 27 Nov 2024 13:56:53 +0000 hourly 1 By: Juan Manuel https://www.happycoders.eu/algorithms/binary-tree-java/#comment-21259 Sat, 25 Nov 2023 07:59:28 +0000 https://www.happycoders.eu/books/binaerbaum-java/#comment-21259 The formula for the index of the parent of node at i is (i - 1) / 2.

That's why in this kind of representation usually the index at position 0 is not used, root is at 1, left is 2 * i, right 2 * i + 1, and parent i / 2.

Thanks for your wondefull tutorials !!!

]]>
By: Nicolas https://www.happycoders.eu/algorithms/binary-tree-java/#comment-17747 Sat, 01 Apr 2023 14:28:01 +0000 https://www.happycoders.eu/books/binaerbaum-java/#comment-17747 Sven, excelentes los códigos presentados y la explicación. Es posible contar con ejemplos de implementación. Saludos

]]>
By: Munarso https://www.happycoders.eu/algorithms/binary-tree-java/#comment-16901 Sun, 25 Jul 2021 04:57:09 +0000 https://www.happycoders.eu/books/binaerbaum-java/#comment-16901 Thank you, this tutorial very useful.

]]>
By: Computer Science Junction https://www.happycoders.eu/algorithms/binary-tree-java/#comment-16873 Tue, 06 Jul 2021 10:48:39 +0000 https://www.happycoders.eu/books/binaerbaum-java/#comment-16873 Well explained with examples and program. Well Done. I appreciate your writing skills.

]]>