7、链表的回文结构练习题 04-链表 / 算法之路 2018年8月20日 junyang 0 请编写一个函数,检查链表是否为回文。 给定一个链表ListNode* pHead,请返回一个bool,代表链表是否为回文。 测试样例: {1,2,3,2,1} 返回:true {1,2,3,2,3} 返回:false
近期评论