C/C++ 面试题集锦英文版

时间:2014-04-22 03:24:36
【文件属性】:

文件名称:C/C++ 面试题集锦英文版

文件大小:139KB

文件格式:DOC

更新时间:2014-04-22 03:24:36

C/C++ 面试题 集锦 英文版

C/C++ Interview Questions how do you find out if a linked-list has an end? (i.e. the list is not a cycle) You can find out by using 2 pointers. One of them goes 2 nodes each time. The second one goes at 1 nodes each time. If there is a cycle, the one that goes 2 nodes each time will eventually meet the one that goes slower. If that is the case, then you will know the linked-list is a cycle.


网友评论

  • 挺好的 还是需要自己多多努力
  • 急人所需,多练练
  • 很有用,值的参考!
  • 总体还可以,对我有帮助。
  • 内容比较丰富,不过有重复的问题。排版没有编号。后面很多问题没有答案。
  • 内容不错,排版比较混乱,还是多谢分享。