diff --git a/exercises/simple-linked-list/description.md b/exercises/simple-linked-list/description.md deleted file mode 100644 index 8c44f677e5..0000000000 --- a/exercises/simple-linked-list/description.md +++ /dev/null @@ -1,15 +0,0 @@ -# Description - -Write a simple linked list implementation that uses Elements and a List. - -The linked list is a fundamental data structure in computer science, often used in the implementation of other data structures. -They're pervasive in functional programming languages, such as Clojure, Erlang, or Haskell, but far less common in imperative languages such as Ruby or Python. - -The simplest kind of linked list is a singly linked list. -Each element in the list contains data and a "next" field pointing to the next element in the list of elements. - -This variant of linked lists is often used to represent sequences or push-down stacks (also called a LIFO stack; Last In, First Out). - -As a first take, lets create a singly linked list to contain the range (1..10), and provide functions to reverse a linked list and convert to and from arrays. - -When implementing this in a language with built-in linked lists, implement your own abstract data type. diff --git a/exercises/simple-linked-list/instructions.md b/exercises/simple-linked-list/instructions.md new file mode 100644 index 0000000000..04640b1fb0 --- /dev/null +++ b/exercises/simple-linked-list/instructions.md @@ -0,0 +1,19 @@ +# Instructions + +Write a prototype of the music player application. + +For the prototype, each song will simply be represented by a number. +Given a range of numbers (the song IDs), create a singly linked list. + +Given a singly linked list, you should be able to reverse the list to play the songs in the opposite order. + +~~~~exercism/note +The linked list is a fundamental data structure in computer science, often used in the implementation of other data structures. + +The simplest kind of linked list is a **singly** linked list. +That means that each element (or "node") contains data, along with something that points to the next node in the list. + +If you want to dig deeper into linked lists, check out [this article][intro-linked-list] that explains it using nice drawings. + +[intro-linked-list]: https://medium.com/basecs/whats-a-linked-list-anyway-part-1-d8b7e6508b9d +~~~~ diff --git a/exercises/simple-linked-list/introduction.md b/exercises/simple-linked-list/introduction.md new file mode 100644 index 0000000000..0e1df72f9b --- /dev/null +++ b/exercises/simple-linked-list/introduction.md @@ -0,0 +1,5 @@ +# Introduction + +You work for a music streaming company. + +You've been tasked with creating a playlist feature for your music player application.