Pocket Gems interview question

STRSTR

Interview Answer

Anonymous

4 Aug 2015

brute force search the character. Simple version Scan A and Scan B, compare each chars in A try to find match B. This will cost O(M*N) which is bad.