mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-16 03:59:18 +08:00
Format C, C++, C#, Go, Java, Python, Rust code.
This commit is contained in:
@@ -64,4 +64,4 @@ func TestList(t *testing.T) {
|
||||
/* 排序列表 */
|
||||
sort.Ints(list) // 排序后,列表元素从小到大排列
|
||||
fmt.Println("排序列表后 list =", list)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,4 +43,4 @@ func TestMyList(t *testing.T) {
|
||||
list.add(i)
|
||||
}
|
||||
fmt.Printf("扩容后的列表 list = %v ,容量 = %v ,长度 = %v\n", list.toArray(), list.capacity(), list.size())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user