Module: Algorithmable::DataStructs::LinkedList

Included in:
Algorithmable::DataStructs
Defined in:
lib/algorithmable/data_structs/linked_list.rb,
lib/algorithmable/data_structs/linked_list/base.rb,
lib/algorithmable/data_structs/linked_list/doubly.rb,
lib/algorithmable/data_structs/linked_list/singly.rb

Defined Under Namespace

Classes: Doubly, Singly

Instance Method Summary collapse

Instance Method Details

#new_doubly_linked_list(collection = []) ⇒ Object


14
15
16
# File 'lib/algorithmable/data_structs/linked_list.rb', line 14

def new_doubly_linked_list(collection = [])
  Doubly.new collection
end

#new_singly_linked_list(collection = []) ⇒ Object


10
11
12
# File 'lib/algorithmable/data_structs/linked_list.rb', line 10

def new_singly_linked_list(collection = [])
  Singly.new collection
end