# Scramblies
Complete the function scramble(str1, str2) that returns true if a portion of str1 characters can be rearranged to match str2, otherwise returns false.
Notes:
Only lower case letters will be used (a-z). No punctuation or digits will be included.
Performance needs to be considered
Examples
scramble('rkqodlw', 'world') ==> True
scramble('cedewaraaossoqqyt', 'codewars') ==> True
scramble('katas', 'steak') ==> False
'매일매일개발 > Codewars' 카테고리의 다른 글
Codewars #12 Range Extraction (4kyu) (0) | 2018.03.30 |
---|---|
Codewars #11 Double Cola (5kyu) (0) | 2018.03.30 |
Codewars #9 Large Factorials (4kyu) (0) | 2018.03.27 |
Codewars #8 Middle Permutation (4kyu) (0) | 2018.03.26 |
Codewars #7 Josephus Permutation (5kuy) (0) | 2018.03.25 |