From 2f79969f6b868e38e38bef9f5dfcd28fb7564b21 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 3 Jun 2022 09:52:34 +0200 Subject: [PATCH] fix(curriculum): external symmetric difference link in CIP (#46288) Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com> Co-authored-by: Jeremy L Thompson --- .../rosetta-code/symmetric-difference.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/symmetric-difference.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/symmetric-difference.md index 422cb77cc23..1181ccefe6a 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/symmetric-difference.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/symmetric-difference.md @@ -8,7 +8,11 @@ dashedName: symmetric-difference # --description-- -Given two [set](https://rosettacode.org/wiki/set)s *A* and *B*, compute $(A \\setminus B) \\cup (B \\setminus A).$ That is, enumerate the items that are in *A* or *B* but not both. This set is called the [symmetric difference]() of *A* and *B*. In other words: $(A \\cup B) \\setminus (A \\cap B)$ (the set of items that are in at least one of *A* or *B* minus the set of items that are in both *A* and *B*). +Given two sets *A* and *B*, compute $(A \\setminus B) \\cup (B \\setminus A).$ That is, enumerate the items that are in *A* or *B* but not both. This set is called the symmetric difference of *A* and *B*. In other words: $(A \\cup B) \\setminus (A \\cap B)$ (the set of items that are in at least one of *A* or *B* minus the set of items that are in both *A* and *B*). + +Example: + +For sets `A = [1, 2, 3]`, and `B = [1, 3, 4]`, the symmetric difference of *A* and *B* is `[2, 4]`. # --instructions--