mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-17 01:06:07 +00:00
Refine kotlin code (#1241)
* style(kotlin): Improve kotlin codes readability. * remove redundant quotes. * style(kotlin): improve codes readability. * style(kotlin): refine kotlin codes. * Create kotlin.yml * Create kotlin.yml * Delete .github/workflows/kotlin * Delete .github/workflows/main.yml * Create kotlin.yml * Update kotlin.yml * Delete .github/workflows/kotlin.yml * Create hello_world_workflow.main.kts * Delete .github/workflows/hello_world_workflow.main.kts * remove empty line
This commit is contained in:
@@ -10,7 +10,7 @@ import utils.TreeNode
|
||||
import utils.printTree
|
||||
|
||||
// 初始化列表,用于存储遍历序列
|
||||
var list = ArrayList<Int>()
|
||||
var list = mutableListOf<Int>()
|
||||
|
||||
/* 前序遍历 */
|
||||
fun preOrder(root: TreeNode?) {
|
||||
|
||||
Reference in New Issue
Block a user