Add kotlin code block for array.md and backtracking_algorithm.md. (#1185)

This commit is contained in:
curtishd
2024-03-27 21:47:34 +08:00
committed by GitHub
parent 556af1624c
commit 16350b65e4
2 changed files with 24 additions and 2 deletions

View File

@@ -108,7 +108,9 @@
=== "Kotlin"
```kotlin title="array.kt"
/* 初始化数组 */
var arr = IntArray(5) // { 0, 0, 0, 0, 0 }
var nums = intArrayOf(1, 3, 2, 5, 4)
```
=== "Zig"