07 2019 档案
十大排序
摘要:先来一张盗图 n: 数据规模k:“桶”的个数In-place: 占用常数内存,不占用额外内存Out-place: 占用额外内存稳定性:排序后2个相等键值的顺序和排序之前它们的顺序相同 冒泡排序 冒泡排序须知: 作为最简单的排序算法之一,冒泡排序给我的感觉就像Abandon在单词书里出现的感觉一样,每 阅读全文
posted @ 2019-07-30 17:27 JetaimeBeaucoup 阅读(160) 评论(0) 推荐(0)
Odd Even Linked List
摘要:/** * Definition for singly-linked list. * public class ListNode { * public int val; * public ListNode next; * public ListNode(int x) { val = x; } * } */ public class Solution { ... 阅读全文
posted @ 2019-07-24 22:04 JetaimeBeaucoup 阅读(74) 评论(0) 推荐(0)
Remove Linked List Elements
摘要:/** * Definition for singly-linked list. * public class ListNode { * public int val; * public ListNode next; * public ListNode(int x) { val = x; } * } */ public class Solution { ... 阅读全文
posted @ 2019-07-24 18:30 JetaimeBeaucoup 阅读(74) 评论(0) 推荐(0)
Reverse Linked List
摘要:反转的方法 /** * Definition for singly-linked list. * public class ListNode { * public int val; * public ListNode next; * public ListNode(int x) { val = x; } * } */ public class Solutio... 阅读全文
posted @ 2019-07-24 18:15 JetaimeBeaucoup 阅读(105) 评论(0) 推荐(0)
Remove Nth Node From End of List
摘要:/** * Definition for singly-linked list. * public class ListNode { * public int val; * public ListNode next; * public ListNode(int x) { val = x; } * } 阅读全文
posted @ 2019-07-24 17:45 JetaimeBeaucoup 阅读(71) 评论(0) 推荐(0)
Intersection of Two Linked Lists
摘要:public ListNode GetIntersectionNode(ListNode headA, ListNode headB) { var pointA = headA; var pointB = headB; if(headA != null && headB != null) { while(p... 阅读全文
posted @ 2019-07-19 18:43 JetaimeBeaucoup 阅读(89) 评论(0) 推荐(0)
Linked List Cycle II
摘要:https://blog.csdn.net/Miss_yuki/article/details/81304107 关于环形的解析 阅读全文
posted @ 2019-07-19 17:50 JetaimeBeaucoup 阅读(59) 评论(0) 推荐(0)
Design Linked List(LeetCode)
摘要:https://leetcode.com/problems/design-linked-list/class ListNode { int val; ListNode next; ListNode (int val) {this.val = val;} } class MyLinkedList { ListNode head=null; /** Init... 阅读全文
posted @ 2019-07-19 13:33 JetaimeBeaucoup 阅读(65) 评论(0) 推荐(0)