mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 11:16:27 +08:00
Add kotlin code block for the chapter of data structure (#1190)
* Add kotlin code block for array.md and backtracking_algorithm.md. * add kotlin code block for chapter_computational_complexity. * Update space_complexity.md * preview linked_list.md * Update linked_list.md * fill in the missing code blocks. * Add kotlin code block for chapter_data_structure.
This commit is contained in:
parent
2f505e7f38
commit
5474ffc1ae
1 changed files with 5 additions and 1 deletions
|
@ -156,7 +156,11 @@
|
||||||
=== "Kotlin"
|
=== "Kotlin"
|
||||||
|
|
||||||
```kotlin title=""
|
```kotlin title=""
|
||||||
|
// 使用多种基本数据类型来初始化数组
|
||||||
|
val numbers = IntArray(5)
|
||||||
|
val decinals = FloatArray(5)
|
||||||
|
val characters = CharArray(5)
|
||||||
|
val bools = BooleanArray(5)
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Zig"
|
=== "Zig"
|
||||||
|
|
Loading…
Reference in a new issue