会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
spp20
博客园
首页
新随笔
联系
订阅
管理
2024年11月26日
2024/11/26【链表】LeetCode 206 反转链表
摘要: 206. 反转链表 - 力扣(LeetCode) 代码随想录 解法1:双指针法 解法2:递归法(代码如下所示) # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None):
阅读全文
posted @ 2024-11-26 16:55 axuu
阅读(22)
评论(0)
推荐(0)