Getting the nth item from the end of a linked list using C++ without using recursion

后端 未结 0 1907
我寻月下人不归
我寻月下人不归 2021-01-17 01:47

I recently stumbled on this problem and I really couldn\'t find an easy way of solving this.

Let\'s say I have a linked list in C++ where each node is such defined:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题