From 8ee2e5eaa961e3ab5a6653e14f3946750dfd2ca1 Mon Sep 17 00:00:00 2001 From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Date: Sat, 6 Jul 2019 00:05:06 -0700 Subject: [PATCH] fix: replace url with empty array in solution (#36380) --- .../algorithms/no-repeats-please/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/english/certifications/coding-interview-prep/algorithms/no-repeats-please/index.md b/guide/english/certifications/coding-interview-prep/algorithms/no-repeats-please/index.md index 27827d75af..2333677cda 100644 --- a/guide/english/certifications/coding-interview-prep/algorithms/no-repeats-please/index.md +++ b/guide/english/certifications/coding-interview-prep/algorithms/no-repeats-please/index.md @@ -97,11 +97,11 @@ A way to visualize this is by considering a tree that starts with the first char function permAlone(str) { // Create a regex to match repeated consecutive characters. - var regex = /(.)\1+/g; + var regex = /(.)\1+/; // Split the string into an array of characters. var arr = str.split(''); - var permutations = ]; + var permutations = []; var tmp; // Return 0 if str contains same character.