Redian新闻
>
如何从URL中取出有意义的words
avatar
如何从URL中取出有意义的words# JobHunting - 待字闺中
b*8
1
Given you a URL, thenewyorkinns.com, ask to take the substring before "."
and separate it into several meaningful words. In this case it is "the","new
","york","inns".
avatar
k*p
2
trie?

new

【在 b*******8 的大作中提到】
: Given you a URL, thenewyorkinns.com, ask to take the substring before "."
: and separate it into several meaningful words. In this case it is "the","new
: ","york","inns".

avatar
b*8
3
还没有怎么听说过trie.能给出相关连接么? 谢谢!
这是G的一道面试题.

【在 k*p 的大作中提到】
: trie?
:
: new

avatar
k*p
4
其实就是prefix tree,也叫trie,你可以google一下wiki

【在 b*******8 的大作中提到】
: 还没有怎么听说过trie.能给出相关连接么? 谢谢!
: 这是G的一道面试题.

avatar
b*8
5
但是好像不太适合这题。trie tree对存储字典什么的比较合适。不知道上面这题,有
谋有更efficient的算法呢?

【在 k*p 的大作中提到】
: 其实就是prefix tree,也叫trie,你可以google一下wiki
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。