Programming Competition and Programming Interview questions. And maybe some web stuff, too.
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