Comment detail

コード中の文字の頻度分析 (Nested Flatten)

This comment is reply for 6468 takatoh: どういう訳かまだRubyがないので。 ...(コード中の文字の頻度分析). Go to thread root.

以下でもOKですね。

hist = Hash.new(0)
src.each_byte do |c|
  hist[c.chr] += 1
end

Index

Feed

Other

Link

Pathtraq

loading...