首页
首页
沸点
课程
直播
活动
竞赛
商城
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
确定删除此收藏集吗
删除后此收藏集将被移除
取消
确定删除
确定删除此文章吗
删除后此文章将被从当前收藏集中移除
取消
确定删除
编辑收藏集
名称:
描述:
0
/100
公开
当其他人关注此收藏集后不可再更改为隐私
隐私
仅自己可见此收藏集
取消
确定
leetcode
订阅
morrisxyang
更多收藏集
微信扫码分享
微信
新浪微博
QQ
7篇文章 · 0订阅
147. Insertion Sort List(使用插入排序对链表进行排序)
描述使用插入排序对链表进行排序思路见插入排序实现
92. Reverse Linked List II(反转链表中的一部分)
Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. 找到并保存第m+1个节点前面的节点,找到并保存第n+1个节点. 要反转的是m+1-n…
4. Median of Two Sorted Arrays(两个有序数组的中位数)
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time co…
393. UTF-8 Validation
对于 1 字节的字符,字节的第一位设为0,后面7位为这个符号的unicode码。 对于 n 字节的字符 (n > 1),第一个字节的前 n 位都设为1,第 n+1 位设为0,后面字节的前两位一律设为10。剩下的没有提及的二进制位,全部为这个符号的unicode码。 给定一个表示…
60. Intersection of Two Linked Lists(相交链表)
编写一个程序,找到两个单链表相交的起始节点。 在节点 c1 开始相交。 如果两个链表没有交点,返回 null. 在返回结果后,两个链表仍须保持原有的结构。 可假定整个链表结构中没有循环。 程序尽量满足 O(n) 时间复杂度,且仅用 O(1) 内存。
328. Odd Even Linked List(奇偶链表)
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number …
19. Remove Nth Node From End of List(只遍历一次,移除链表倒数第k个节点)
Given a linked list, remove the n-th node from the end of list and return its head. Given n will always be valid.