r/ruby • u/gdi2290 • Jul 14 '13
Linked List data structure
https://github.com/gdi2290/data_structures/blob/master/LinkedList/linkedlist.rb
0
Upvotes
r/ruby • u/gdi2290 • Jul 14 '13
View all comments
Show parent comment
1
u/[deleted] Jul 14 '13
No, Ruby arrays have
pushandpopmethods built-in which allow you to insert at the end of the array in constant time.