摘要: 25. Reverse Nodes in k-Group 用栈的形式存储k个节点并反转,一个是用来入栈分段的,一个是用来出栈翻转的 空间复杂度O( N ) class Solution { public ListNode reverseKGroup(ListNode head, int k) { i 阅读全文
posted @ 2020-01-13 11:29 阿飞哦 阅读(103) 评论(0) 推荐(0) 编辑