Add kotlin code for chapter_stack_and_queue and chapter_tree (#1197)

* Add kotlin code block for chapter_hashing

* Add kotlin code block for chapter_heap.

* Add kotlin code block for chapter_stack_and_queue and chapter_tree

* fix indentation

* Update binary_tree.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
curtishd
2024-03-30 13:16:39 +08:00
committed by GitHub
parent 85ca4cce43
commit cfe8281aee
6 changed files with 96 additions and 8 deletions

View File

@@ -115,7 +115,9 @@
=== "Kotlin"
```kotlin title=""
/* 二叉树的数组表示 */
// 使用 null 来表示空位
val tree = mutableListOf( 1, 2, 3, 4, null, 6, 7, 8, 9, null, null, 12, null, null, 15 )
```
=== "Zig"