avatar
前几天的interview题# JobHunting - 待字闺中
w*h
1
感觉我都回答的不好...
1. a linked list, and the last node could point back to any node in the list
. find the node in the list to which the last node points to.
我的方法是iterate the list, mark each node if we pass it, the node that we
are looking for should be the one that we already passed. 但是这样就要在每个
node里加个flag,似乎不太好。
2. find the common words in two sentences.
这个我回答的太土了。我tokenize each words in the sentence, 然后比较这些words
。有啥简单的方法吗?
3. find the specific words in a sentence.
其实就是strstr()?
4. how to remove a cy
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。