Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added anagram problem
  • Loading branch information
deveshp530 committed Oct 28, 2019
commit 2a350a39b61e4f61278df692e64b9b8a66195285
23 changes: 23 additions & 0 deletions docs/Exercise/JavaScript_Basics/two_strings.md
Original file line number Diff line number Diff line change
@@ -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