problem
解いた
# @param {String} s # @param {String} t # @return {Boolean} def is_isomorphic(s, t) henkan = {} s.chars.each_with_index do |char, index| if henkan[char].nil? && !henkan.values.include?(t[index]) henkan[char] = t[index] else return false if henkan[char] != t[index] end end true end