Files
Yudong Jin 2f561d3d51 feat(ko): add the Korean online edition (#2006)
* feat(ko): add the complete Korean online edition

* Use UTF-8 for Python CI output on Windows

* Remove print-book promotion from the Korean site

* fix(ko): preserve emphasis before Korean particles
2026-10-29 03:46:43 +08:00

35 lines
755 B
Ruby

=begin
File: built_in_hash.rb
Created Time: 2024-04-13
Author: Xuan Khoa Tu Nguyen ([email protected])
=end
require_relative '../utils/list_node'
### 실행 코드 ###
if __FILE__ == $0
num = 3
hash_num = num.hash
puts "정수 #{num}의 해시값: #{hash_num}"
bol = true
hash_bol = bol.hash
puts "불리언 #{bol}의 해시값: #{hash_bol}"
dec = 3.14159
hash_dec = dec.hash
puts "소수 #{dec}의 해시값: #{hash_dec}"
str = "Hello 算法"
hash_str = str.hash
puts "문자열 #{str}의 해시값: #{hash_str}"
tup = [12836, '小哈']
hash_tup = tup.hash
puts "튜플 #{tup}의 해시값: #{hash_tup}"
obj = ListNode.new(0)
hash_obj = obj.hash
puts "노드 객체 #{obj}의 해시값: #{hash_obj}"
end