数组法 /** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 the head * @return bool布尔型 */ bool isPail(ListNode* head) { int i=0,j,a[100000],cout=0; if(head==NULL||head->next==NULL) return true; struct ListNode * p=head; while(p!=N...