转载请标明出处http://www.cnblogs.com/haozhengfei/p/abb04e825ba4b847dcb704605ea1cd36.html
链表的回文结构
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221935580-701085208.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221936627-2032922182.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221937205-1630437244.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221938533-1699252722.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221939971-1299301570.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221940815-1506582771.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221941752-1209584041.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221942018-1253650275.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221942377-1361621840.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221942627-12035170.jpg)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170322221943205-386038109.jpg)
链表回文结构练习
第9节 链表的回文结构练习题
请编写一个函数,检查链表是否为回文。
给定一个链表ListNode* pHead,请返回一个bool,代表链表是否为回文。
测试样例:
{1,2,3,2,1}
返回:true
{1,2,3,2,3}
返回:false
您的代码已保存
答案正确:恭喜!您提交的程序通过了所有的测试用例
答案正确:恭喜!您提交的程序通过了所有的测试用例