diff --git a/assets/cartesian-product.png b/assets/cartesian-product.png new file mode 100644 index 00000000..f659c631 Binary files /dev/null and b/assets/cartesian-product.png differ diff --git a/src/algorithms/math/cartesian-product/README.md b/src/algorithms/math/cartesian-product/README.md index cfcf806e..208905fe 100644 --- a/src/algorithms/math/cartesian-product/README.md +++ b/src/algorithms/math/cartesian-product/README.md @@ -5,4 +5,6 @@ In set theory a Cartesian product is a mathematical operation that returns a set the Cartesian product A × B is the set of all ordered pairs (a, b) where a ∈ A and b ∈ B. -![Cartesian Product of Two Sets](https://en.wikipedia.org/wiki/Cartesian_product#/media/File:Cartesian_Product_qtl1.svg) +![Cartesian Product of Two Sets](https://github.com/trekhleb/javascript-algorithms/blob/master/assets/cartesian-product.png) + +Image from [Wikipedia](https://en.wikipedia.org/wiki/Cartesian_product)