mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-31 12:27:13 +00:00
Re-translate the Japanese version (#1871)
* Retranslate Japanese docs with GPT-5.4 * Retranslate Japanese code with GPT-5.4
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* File: built_in_hash.dart
|
||||
* Created Time: 2023-06-25
|
||||
* Author: liuyuxin (gvenusleo@gmail.com)
|
||||
*/
|
||||
|
||||
import '../chapter_stack_and_queue/linkedlist_deque.dart';
|
||||
|
||||
/* Driver Code */
|
||||
void main() {
|
||||
int _num = 3;
|
||||
int hashNum = _num.hashCode;
|
||||
print("整数 $_num のハッシュ値は $hashNum");
|
||||
|
||||
bool bol = true;
|
||||
int hashBol = bol.hashCode;
|
||||
print("真偽値 $bol のハッシュ値は $hashBol");
|
||||
|
||||
double dec = 3.14159;
|
||||
int hashDec = dec.hashCode;
|
||||
print("小数 $dec のハッシュ値は $hashDec です");
|
||||
|
||||
String str = "Hello アルゴリズム";
|
||||
int hashStr = str.hashCode;
|
||||
print("文字列 $str のハッシュ値は $hashStr です");
|
||||
|
||||
List arr = [12836, "シャオハー"];
|
||||
int hashArr = arr.hashCode;
|
||||
print("配列 $arr のハッシュ値は $hashArr です");
|
||||
|
||||
ListNode obj = new ListNode(0);
|
||||
int hashObj = obj.hashCode;
|
||||
print("ノードオブジェクト $obj のハッシュ値は $hashObj です");
|
||||
}
|
||||
Reference in New Issue
Block a user