注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
发面经攒人品:
有几道在之前面经里的题就不发了。都是G家的题。
Q1:
列举出所有可以由给定字符拼成的合法的单词,字符不可以重复使用
有一个方法 isWord(String word) 可以判断是否拼成一个合法的单词
[a c t] as input
“tat” is not allowed
[t a c t] as input
“tat” is allowed
Q2:
Design an algorithm to recommend a person who shardFilter(filter)
isInBlackList(string)
filters are in the form of
“a*b”
“abc”
“aa*b”
having at most one star, which matches 0 or more chars.
|