鏈表反轉(zhuǎn)以4個元素為一組,兩個元素為1個小組,反轉(zhuǎn),組內(nèi)元素順序不變。瞎幾把寫的,因為我想火速AC。 /** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * 代碼中的類名、方法名、參數(shù)名已經(jīng)指定,請勿修改,直接返回方法規(guī)定的值即可 * * @param head ListNode類 * @return ListNode類 */ ListNode* reorderList(L...