TPK algorithm: Difference between revisions

Content deleted Content added
Ruby: Modified ruby version to make slightly more idiomatic
Line 108:
end
 
(011...11)times.collect{ gets.to_i }.reverse.each do |x|
y = f(x)
puts "#{x} #{y.infinite? ? 'TOO LARGE' : y}"