//遍历两次,第一次把m到n之间的数存入栈中 第二次取出栈。卡住的点在于要判断入栈出栈后的->next需要判断条件 /** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 * @param m int整型 * @param n int整型 * @return ListNode类 */ ListNode* reverseBetween(ListNode* head, int m, int n) { in...