Rename files

This commit is contained in:
Vitor Oliveira 2021-02-07 10:24:22 -08:00
parent 0624af6cb9
commit c99c8ffb04
3 changed files with 2 additions and 4 deletions

View file

@ -1,5 +1,5 @@
class DoublyLinkedList
# Initialize your data structure here.
# Initialize the data structure here.
attr_reader :head, :tail, :size
def initialize
@ -84,7 +84,6 @@ class DoublyLinkedList
cnt -= 1
end
end
# else put "illegal input"
end
end
@ -126,7 +125,6 @@ class DoublyLinkedList
cnt -= 1
end
end
# else put "illegal input"
end
end

View file

@ -1,5 +1,6 @@
# Define a node in the list
class Node
# Initialize the data structure here.
attr_accessor :value, :next
def initialize(value)
@ -9,7 +10,6 @@ class Node
end
# A Class for single linked lists (each element links to the next one, but not to the previous one)
class SinglyLinkedList
include Enumerable
attr_accessor :head