Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addie's Linked List #13

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Linked-List
# Linked List in Go
Assignment completed during my time at Ada Developers Academy. It implements methods for a linked list, along with a test suite, written in Go.

Original instructions below:

## Linked-List
Using object oriented design constructs, define a Node class and LinkedList class for a singly linked list. Each node has integer data value and a link to the next node. The linked list class has a head node and the following methods defined.

## Exercise
Design and implement the classes and the methods.
Methods to implement in the singly linked list:
- *insert*: method to add a new node with the specific input data value in the linked list.
- *insert*: method to add a new node with the specific input data value in the linked list.
Insert the new node at the beginning of the linked list
- *search*: method to find if the linked list contains a node with specified input value. Returns true if found, false otherwise.
- *find_max*: method to return the max value in the linked list. Returns the data value and not the node.
Expand All @@ -23,4 +28,3 @@ Methods to implement in the singly linked list:
- *find_nth_from_end*: find the nth node from the end and return its value. Assume indexing starts at 0 while counting to n.
- *has_cycle*: Checks if the linked list has a cycle. A cycle exists if any node in the linked list links to a node already visited.
Returns true if a cycle is found, false otherwise.

229 changes: 0 additions & 229 deletions linked_list.rb

This file was deleted.

Loading