![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linked list
我要上岸!!!
这个作者很懒,什么都没留下…
展开
-
Leetcode 24 Swap Nodes in Pairs
最近在刷亚麻的tag,准备准备可能即将到来的VO.题目描述Given a linked list, swap every two adjacent nodes and return its head.You may not modify the values in the list’s nodes, only nodes itself may be changed.exampleGive...原创 2019-03-05 13:01:16 · 146 阅读 · 0 评论 -
LeetCode 206 Reverse Linked List
递归实现/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */class Solution { // recursively pub...原创 2019-03-16 14:14:33 · 53 阅读 · 0 评论