mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-19 23:10:58 +00:00
Many bug fixes and improvements (#1270)
* Add Ruby and Kotlin icons Add the avatar of @curtishd * Update README * Synchronize zh-hant and zh versions. * Translate the pythontutor blocks to traditional Chinese * Fix en/mkdocs.yml * Update the landing page of the en version. * Fix the Dockerfile * Refine the en landingpage * Fix en landing page * Reset the README.md
This commit is contained in:
@@ -11,7 +11,7 @@ import utils.printHashMap
|
||||
/* Driver Code */
|
||||
fun main() {
|
||||
/* 初始化雜湊表 */
|
||||
val map: MutableMap<Int, String> = HashMap()
|
||||
val map = HashMap<Int, String>()
|
||||
|
||||
/* 新增操作 */
|
||||
// 在雜湊表中新增鍵值對 (key, value)
|
||||
@@ -44,7 +44,7 @@ fun main() {
|
||||
println(key)
|
||||
}
|
||||
println("\n單獨走訪值 Value")
|
||||
for (value in map.values) {
|
||||
println(value)
|
||||
for (_val in map.values) {
|
||||
println(_val)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user