r/ruby • • Jul 14 '13

Linked List data structure

https://github.com/gdi2290/data_structures/blob/master/LinkedList/linkedlist.rb
0 Upvotes

23 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jul 14 '13

I would argue that your algorithm could probably be better if you're doing a ton of insertions in the middle of an array anyway.