07 2019 档案
十大排序
摘要:先来一张盗图 n: 数据规模k:“桶”的个数In-place: 占用常数内存,不占用额外内存Out-place: 占用额外内存稳定性:排序后2个相等键值的顺序和排序之前它们的顺序相同 冒泡排序 冒泡排序须知: 作为最简单的排序算法之一,冒泡排序给我的感觉就像Abandon在单词书里出现的感觉一样,每
阅读全文
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 { ...
阅读全文
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 { ...
阅读全文
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...
阅读全文
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; } * }
阅读全文
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...
阅读全文
Linked List Cycle II
摘要:https://blog.csdn.net/Miss_yuki/article/details/81304107 关于环形的解析
阅读全文
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...
阅读全文
浙公网安备 33010602011771号