Skip to content

Commit fb68424

Browse files
Sync simple-linked-list docs with problem-specifications (#2146)
* Sync simple-linked-list docs with problem-specifications The simple-linked-list exercise has been overhauled as part of a project to make practice exercises more consistent and friendly. For more context, please see the discussion in the forum, as well as the pull request that updated the exercise in the problem-specifications repository: - https://forum.exercism.org/t/new-project-making-practice-exercises-more-consistent-and-human-across-exercism/3943 * Sync simple-linked-list docs with problem-specifications The simple-linked-list exercise has been overhauled as part of a project to make practice exercises more consistent and friendly. For more context, please see the discussion in the forum, as well as the pull request that updated the exercise in the problem-specifications repository: - https://forum.exercism.org/t/new-project-making-practice-exercises-more-consistent-and-human-across-exercism/3943 * [CI] Format code --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 198f17a commit fb68424

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed
Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
# Instructions
22

3-
Write a simple linked list implementation that uses Elements and a List.
3+
Write a prototype of the music player application.
44

5-
The linked list is a fundamental data structure in computer science,
6-
often used in the implementation of other data structures. They're
7-
pervasive in functional programming languages, such as Clojure, Erlang,
8-
or Haskell, but far less common in imperative languages such as Ruby or
9-
Python.
5+
For the prototype, each song will simply be represented by a number.
6+
Given a range of numbers (the song IDs), create a singly linked list.
107

11-
The simplest kind of linked list is a singly linked list. Each element in the
12-
list contains data and a "next" field pointing to the next element in the list
13-
of elements.
8+
Given a singly linked list, you should be able to reverse the list to play the songs in the opposite order.
149

15-
This variant of linked lists is often used to represent sequences or
16-
push-down stacks (also called a LIFO stack; Last In, First Out).
10+
```exercism/note
11+
The linked list is a fundamental data structure in computer science, often used in the implementation of other data structures.
1712
18-
As a first take, lets create a singly linked list to contain the range (1..10),
19-
and provide functions to reverse a linked list and convert to and from arrays.
13+
The simplest kind of linked list is a **singly** linked list.
14+
That means that each element (or "node") contains data, along with something that points to the next node in the list.
2015
21-
When implementing this in a language with built-in linked lists,
22-
implement your own abstract data type.
16+
If you want to dig deeper into linked lists, check out [this article][intro-linked-list] that explains it using nice drawings.
17+
18+
[intro-linked-list]: https://medium.com/basecs/whats-a-linked-list-anyway-part-1-d8b7e6508b9d
19+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Introduction
2+
3+
You work for a music streaming company.
4+
5+
You've been tasked with creating a playlist feature for your music player application.

0 commit comments

Comments
 (0)