Palindrome Linked-list

前端 未结 0 1667
误落风尘
误落风尘 2020-12-17 19:43

Here\'s my code.
The concept is to traverse the whole linkedlist by taking two pointers fast and slow ,once slow is at the middle ,will reverse the list and compare it

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