From 83ffe53fd945292fa289ca7e32e17ccaa493ebc4 Mon Sep 17 00:00:00 2001 From: SurkinK Date: Thu, 23 Jul 2020 14:31:00 +0500 Subject: [PATCH 1/2] Update 6-matrix.js one-line solution --- Solutions/6-matrix.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Solutions/6-matrix.js b/Solutions/6-matrix.js index 78369e8..2ae42e7 100644 --- a/Solutions/6-matrix.js +++ b/Solutions/6-matrix.js @@ -12,4 +12,8 @@ const max = matrix => { return value; }; +/* one-line solution +const max = matrix => Math.max(...martix.flat()) +*/ + module.exports = { max }; From c9f760d16436831174c1ae212084bd5bac1a44d5 Mon Sep 17 00:00:00 2001 From: SurkinK Date: Thu, 23 Jul 2020 14:34:40 +0500 Subject: [PATCH 2/2] Update 6-matrix.js fix typo --- Solutions/6-matrix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Solutions/6-matrix.js b/Solutions/6-matrix.js index 2ae42e7..656bb9c 100644 --- a/Solutions/6-matrix.js +++ b/Solutions/6-matrix.js @@ -13,7 +13,7 @@ const max = matrix => { }; /* one-line solution -const max = matrix => Math.max(...martix.flat()) +const max = matrix => Math.max(...matrix.flat()) */ module.exports = { max };