All Questions

Tagged with
Filter by
Sorted by
Tagged with
5
votes
2answers
301 views

Golf my iteration function

Here is my ungolfed Ruby code for a function I want to try and golf: ...
7
votes
2answers
157 views

How to improve Ruby code under some restrictions

I'm (still) trying to make another submission to the Largest Number Printable question, and I've got the following bit of code: ...
13
votes
3answers
865 views

Advice for ruby

How can I shorten: p=gets.to_i a=gets b=gets.to_i If my input is an integer, followed by a string, followed by an integer?
62
votes
50answers
18k views

Tips for golfing in Ruby

What general tips can you give for golfing in Ruby? I'm looking for ideas that can be applied to code golf problems in general that are specific to Ruby. (For example, "Remove comments" would not be ...