@@ -0,0 +1,525 @@
+/**%0A * @Company Facebook%0A *%0A * Given two strings, str and pattern, return true if the str has a valid mapping between the words in str and the characters in the pattern.%0A * The str will be whitespace separated and the pattern will be depicted using characters.%0A *%0A * Problem Ex.%0A *   Input: 'cat dog dog cat', 'abba'%0A *   Output: true because cat = a and dog = b.%0A *%0A *   Input: 'cat dog dog foo', 'abba'%0A *   Output: false because cat = a so foo cannot == a%0A */%0Apublic boolean isValidPattern(String str, String pattern) %7B %7D%0A

Add facebook interview problem