注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Coding Question: Given a list of strings, for each string, output the shortest substring that only appears in that string
Example:
Input: [ "palantir", "pelantors", "cheapair", "cheapoair"]
output:{
"palantir": "ti", # ti only appears in "palantir"
"pelantors": "s", # s only appears in "pelantors"
"cheapair": "pai" or "apa", # either substring only appears in "cheapair"
"cheapoair": "po" or "oa" # either substring only appears in cheapoair
}
System design was o design job scheduler. BQ was typical questions such as proud project, conflict resolution etc.
Pls give me rice.
|