We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
我们的任务是倒序遍历给定的链表
比如下面的链表
遍历的顺序应该是
37 → 99 → 12
因为我们每个节点只访问一次,时间复杂度应该是O(n)
O(n)