程序员达达

Tag Archive for Dropbox

Dropbox的online coding exercise

原帖地址:mitbbs Glassdoor上有人贴,不过上面没有详细的题目描述,不知道pattern是不是general的, 请教有没有什么好的思路? Given a pattern and a string input – find if the string follows the same pattern and return 0 or 1. Examples: 1) Pattern : “abab”, input: “redblueredblue” should return 1. 2) Pattern: “aaaa”, input: “asdasdasdasd” should return 1. 3) Pattern: “aabb”, input: “xyzabcxzyabc” should return 0.