From 9026a748fba7168c297d4b1130955028e7e7c8c2 Mon Sep 17 00:00:00 2001 From: atomiks Date: Tue, 2 Jan 2018 04:04:39 +1100 Subject: [PATCH] Add warning to anagrams --- snippets/anagrams.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/anagrams.md b/snippets/anagrams.md index e467d05f9..ae7284a0b 100644 --- a/snippets/anagrams.md +++ b/snippets/anagrams.md @@ -1,5 +1,7 @@ ### anagrams +⚠️ **WARNING**: This function's execution time increases exponentially with each character. Anything more than 8 to 10 characters will cause your browser to hang as it tries to solve all the different combinations. + Generates all anagrams of a string (contains duplicates). Use recursion.