mirror of
https://github.com/krahets/hello-algo.git
synced 2026-09-04 14:17:14 +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,15 +11,15 @@ import utils.ListNode
|
||||
/* Driver Code */
|
||||
fun main() {
|
||||
val num = 3
|
||||
val hashNum = Integer.hashCode(num)
|
||||
val hashNum = num.hashCode()
|
||||
println("整數 $num 的雜湊值為 $hashNum")
|
||||
|
||||
val bol = true
|
||||
val hashBol = Boolean.hashCode()
|
||||
val hashBol = bol.hashCode()
|
||||
println("布林量 $bol 的雜湊值為 $hashBol")
|
||||
|
||||
val dec = 3.14159
|
||||
val hashDec = java.lang.Double.hashCode(dec)
|
||||
val hashDec = dec.hashCode()
|
||||
println("小數 $dec 的雜湊值為 $hashDec")
|
||||
|
||||
val str = "Hello 演算法"
|
||||
|
||||
Reference in New Issue
Block a user