忠奸人

忠奸人

    • Home
    • Archives
    • About

Insertion Sort List

Insertion Sort List题目Sort a linked list using insertion sort. 思路插入排序的思想 解题c++版 123456789101112131415161718192021222324252627282930/** * Defi

2015-06-19

Convert Sorted List to Binary Search Tree

Convert Sorted List to Binary Search Tree题目Given a singly linked list where elements are sorted in ascending order, convert it to a height b

2015-06-19

Copy List with Random Pointer

Copy List with Random Pointer题目A linked list is given such that each node contains an additional random pointer which could point to any nod

2015-06-19

Rotate List

Rotate List题目Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1->2->3->4->5-&g

2015-06-19

Reorder List

Reorder List题目Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without alterin

2015-06-18

Linked List Cycle II

Linked List Cycle II题目Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you sol

2015-06-18

Linked List Cycle

Linked List Cycle题目Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 思路设置快慢指针,

2015-06-18

Partition List

Partition List题目Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x

2015-06-17

Remove Duplicates from Sorted List II

Remove Duplicates from Sorted List II题目Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbe

2015-06-17

Remove Duplicates from Sorted List

Remove Duplicates from Sorted List题目Given a sorted linked list, delete all duplicates such that each element appear only once. For example,

2015-06-17
Prev1…3456Next

分类

  • leetcode57

标签

  • leetcode,tree28
  • leetcode,linkList20
  • leetcode,stack7
  • leetcode1
  • leetcode,dfs1

友情链接

  • 码农圈
  • Jark's Blog
  • 劝儒乡
RSS 订阅

新浪微博

生命不息,战斗不止!!!
This is my blog,believe it or not.

Powered by hexo and Theme by Jacman © 2015 yzbachelor