mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-04 22:28:40 +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:
@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user