From 2a350a39b61e4f61278df692e64b9b8a66195285 Mon Sep 17 00:00:00 2001 From: deveshp530 Date: Mon, 28 Oct 2019 08:51:59 -0700 Subject: [PATCH] added anagram problem --- .../Exercise/JavaScript_Basics/two_strings.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/Exercise/JavaScript_Basics/two_strings.md diff --git a/docs/Exercise/JavaScript_Basics/two_strings.md b/docs/Exercise/JavaScript_Basics/two_strings.md new file mode 100644 index 0000000..a64f4e0 --- /dev/null +++ b/docs/Exercise/JavaScript_Basics/two_strings.md @@ -0,0 +1,23 @@ +# Anagram + +given two strings as parameters, check whether you can make the first string into the second string. Assume the two strings have equal length + +# Example 1 + +String1 = 'team' +String2 = 'mate' + +should return return true because you can rearrange team to make mate + +# Example 2 + +String1 = 'angered' +String2 = 'enraged' + +Returns true + +# Example 3 +String1 = 'evils' +String2 = 'vile' + +return false since the length of two strings are not equal \ No newline at end of file