블로그
- [Ruby] Ruby 히스토그램(Histogram) words.each { |word| frequencies[word] += 1 } frequencies = frequencies.sort_by do |color, count| count end #뒤집어서frequencies에 저장 - to_s 함수 : 문자로 변환(concatenate) puts name + " " + count.to_s
- Concatinating string variables To concatenate is to join the characters of 2 or more variables from end to end. To concatenate var1 and var3, either transform var3 to s.......