mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-12-26 21:58:56 +01:00
Update data_structures/linked_lists/circular_linked_list.rb
Co-authored-by: vzvu3k6k <vzvu3k6k@gmail.com>
This commit is contained in:
parent
36d8075f3f
commit
baa7ca17b4
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ end
|
|||
|
||||
# Class for circular linked list (last node points to the head node)
|
||||
class CircularList
|
||||
attr_accessor :head
|
||||
attr_reader :head
|
||||
|
||||
def initialize
|
||||
@head = nil
|
||||
|
|
Loading…
Reference in a new issue