From 0e3bbeca42fa72f81a373fc2bfb11b818a3864bf Mon Sep 17 00:00:00 2001 From: Zgo Date: Sun, 7 Jun 2020 21:13:18 +0800 Subject: [PATCH] Update Chap12-15.js Maximum call stack size exceeded --- Chapter12/Chap12-15.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter12/Chap12-15.js b/Chapter12/Chap12-15.js index c29183c..459a843 100644 --- a/Chapter12/Chap12-15.js +++ b/Chapter12/Chap12-15.js @@ -11,7 +11,7 @@ function qSort(arr) if (arr[i] < pivot) { left.push(arr[i]); - } else { + } else if(arr[i] > pivot) { right.push(arr[i]); }