Wednesday, December 19, 2012

String Permutations

Book: Cracking the Coding Interview
Question: 1.3 (page 73)

Give two strings, write a method to decide if one is a permutation of the other.

Solution: Complexity - O(n), Space - O(n)


No comments:

Post a Comment