Subtle self-praise ;)
The following thread appeared today on Ruby-talk (shortened):
Peter: [Problem description] I have already implemented it but I don't think so it's a state-of-the art solution ;)
Alex: how about this: input.each{|i| i.each_with_index{|x,j| (result[j] ||= []) << x}}
Peter: Thx for the solution! Mine was totally the same [...]
Alex: You are simply brilliant ;)
Peter: [Problem description] I have already implemented it but I don't think so it's a state-of-the art solution ;)
Alex: how about this: input.each{|i| i.each_with_index{|x,j| (result[j] ||= []) << x}}
Peter: Thx for the solution! Mine was totally the same [...]
Alex: You are simply brilliant ;)
0 Comments:
Kommentar veröffentlichen
<< Home