Skip to content

Commit

Permalink
[Sublist] fix wording issue in instructions.md
Browse files Browse the repository at this point in the history
The words "sublist" and "subsequence"[^1] mean different things. They should not be used interchangeable.

[^1]: https://en.wikipedia.org/wiki/Subsequence
  • Loading branch information
mkovaxx authored Jul 14, 2024
1 parent a4c1bb0 commit 33b99f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/practice/sublist/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Given any two lists `A` and `B`, determine if:
- None of the above is true, thus lists `A` and `B` are unequal

Specifically, list `A` is equal to list `B` if both lists have the same values in the same order.
List `A` is a superlist of `B` if `A` contains a sub-sequence of values equal to `B`.
List `A` is a sublist of `B` if `B` contains a sub-sequence of values equal to `A`.
List `A` is a superlist of `B` if `A` contains a sublist (contiguous sub-sequence) of values equal to `B`.
List `A` is a sublist of `B` if `B` contains a sublist of values equal to `A`.

Examples:

Expand Down

0 comments on commit 33b99f3

Please sign in to comment.