Question: Problem Given two strings, str _ a and str _ b , determine whether any anagram of str _ b , occurs as a substring
Problem
Given two strings, stra and strb determine whether any anagram of strb occurs as a substring of stra
Constraints
Comparison is NOT case sensitive and input string sizes vary
Examples
Here come dots and lines that helped build America, The Morse Code True
crowd, word True
There is no anagram here, some word False
There is no anagram here, game False
Explanations:
TRUE Some arrangement of the characters in strb is a substring in string a
FALSE Some arrangement of the characters in stbb is NOT a substring in string #a No rearrangements of characters in strb are contiguously found in stra
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
