Skip to content

Commit

Permalink
modify to print press sequences, not considering pause
Browse files Browse the repository at this point in the history
  • Loading branch information
philipjkim committed Mar 23, 2012
1 parent 68f8a1c commit e8a2307
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions problemC/t9spelling.rb
Expand Up @@ -29,10 +29,8 @@

lines = File.open(in_filename).read.split("\n")
2.upto(lines.length - 1) do |index|
lines[index].split("").each do |char|
# do something.
end
puts "Case ##{index}: #{lines[index]}"
press_seq = lines[index].split("").map{|char| keyhash[char]}
puts "Case ##{index}: #{press_seq.join(",")}"
end
puts Time.now - started
end

0 comments on commit e8a2307

Please sign in to comment.