w****h 发帖数: 152 | 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 |
|