Skip to content
Browse files

Updated Problem 11 (Ruby)

  • Loading branch information...
1 parent d708b05 commit 84c7086198931f7e5df629240defae2d74ef07a3 @citizen428 citizen428 committed Jun 28, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 citizen428/11/euler11.rb
View
3 citizen428/11/euler11.rb
@@ -1,5 +1,4 @@
-grid = []
-DATA.readlines.each do |line|
+grid = DATA.readlines.inject [] do |grid, line|
grid << (line.split.map! { |el| el.to_i})
end

0 comments on commit 84c7086

Please sign in to comment.
Something went wrong with that request. Please try again.