Prakhar
Prakhar

Reputation: 3536

Learning to Program

I've been told that the best way to learn a programming language is to implement some data structures in it. I am currently learning Ruby and I would really love to code some data structures like Tries, AVL etc. Are there any sites out there which outline how to go about doing this and can suggest exercises and optimizations based on the same. Any help would be greatly appreciated. Thanks.

Upvotes: 2

Views: 675

Answers (5)

user3245240
user3245240

Reputation: 255

PuzzleNode.com helped me.

There are 15 problems. You can finish in a day or two, longer if you plan on test driving the solutions. I like to think of each problem as being larger than a kata, but smaller than trying to implement a tic tac toe game in Ruby. You'll be exposed to parsing in Ruby, data structures and using possibly gems based on your implementation. There also fun; good luck!

Upvotes: 0

Alexandros
Alexandros

Reputation: 3064

You can also look at TopCoder Tutorials.

Upvotes: 0

brainydexter
brainydexter

Reputation: 20356

I would recommend learning the basics first, since they lay the foundation. Start simple with things like linked lists, binary search trees, stacks etc.

Upvotes: 0

Swanand
Swanand

Reputation: 12426

You can also start with Ruby Code Kata. They are seemingly real world problems with almost always an algorithm based problem lying underneath.

There are discussion forums available there to discuss each Kata, so that your feedback loop for learning would be completed.

Upvotes: 6

fengolly
fengolly

Reputation: 503

Here's a free online book on creating data structures with Ruby:

http://www.brpreiss.com/books/opus8/

Upvotes: 3

Related Questions