From 9cca81d3fb86339832d3404c519254a208f43588 Mon Sep 17 00:00:00 2001 From: yendoz <102748767+yendoz@users.noreply.github.com> Date: Thu, 12 May 2022 12:48:53 +0900 Subject: [PATCH] Update 12_day_regular_expressions.md --- 12_Day_Regular_expressions/12_day_regular_expressions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/12_Day_Regular_expressions/12_day_regular_expressions.md b/12_Day_Regular_expressions/12_day_regular_expressions.md index adf91c4..914ebbd 100644 --- a/12_Day_Regular_expressions/12_day_regular_expressions.md +++ b/12_Day_Regular_expressions/12_day_regular_expressions.md @@ -430,8 +430,8 @@ console.log(result) // true 1. The position of some particles on the horizontal x-axis -12, -4, -3 and -1 in the negative direction, 0 at origin, 4 and 8 in the positive direction. Extract these numbers and find the distance between the two furthest particles. ```js -points = ['-1', '2', '-4', '-3', '-1', '0', '4', '8'] -sortedPoints = [-4, -3, -1, -1, 0, 2, 4, 8] +points = ['-1', '2', '-4', '-3', '0', '4', '8'] +sortedPoints = [-4, -3, -1, 0, 2, 4, 8] distance = 12 ```