Algorithm

Algorithm



  • Home
  • Algorithm
    • LeetCode
    • LintCode
    • HDUOJ
  • Online Judge
  • Archive


Linked

Linked

[LeetCode 92] Reverse Linked List II [Java]

 2018-03-28

1. Description Reverse a linked list from position m to n. Do it in-place and in one-pass. Note: Given m, n satisfy the following condition: 1 ≤ m ...


 NOTHING
 1,387 views

Linked

[LeetCode 82] Remove Duplicates from Sorted List II [Java]

 2018-03-20

1. Description Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. 2. E...


 NOTHING
 1,132 views

Linked

[LeetCode 86] Partition List [Java]

 2018-03-18

1. Description 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. You sh...


 NOTHING
 1,174 views

Linked

[LeetCode 109] Convert Sorted List to Binary Search Tree [Java]

 2018-03-14

1. Description Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a he...


 NOTHING
 1,204 views

Linked

[LeetCode 83] Remove Duplicates from Sorted List [Java]

 2018-02-26

1. Description Given a sorted linked list, delete all duplicates such that each element appear only once. 2. Example Given 1->1->2, return 1->2....


 NOTHING
 663 views

Linked

[LeetCode 61] Rotate List [Java]

 2018-02-04

1. Description Given a list, rotate the list to the right by k places, where k is non-negative. 2. Example Given 1->2->3->4->5->NULL and k = 2, ...


 NOTHING
 666 views

Linked

[LeetCode 24] Swap Nodes in Pairs [Java]

 2017-11-22

1. Description Given a linked list, swap every two adjacent nodes and return its head. Your algorithm should use only constant space. You may not m...


 NOTHING
 608 views

Linked

[LeetCode 21] Merge Two Sorted Lists [Java]

 2017-11-22

1. Description Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first t...


 NOTHING
 626 views

Linked
leetcode

[LeetCode 148] Sort List [Java] [Beats: 99.91%]

 2017-08-22

1. Description Sort a linked list in O(n log n) time using constant space complexity. 2. Runtime Distribution 3. Submission Details 4. Example ...


 NOTHING
 902 views

Linked
leetcode

[LeetCode 206] Reverse Linked List [Java] [Runtime : 0MS]

 2017-07-22

1. Description Reverse a singly linked list. 2. Runtime Distribution 3. Submission Details 4. Code [restabs alignment="osc-tabs-right" responsive...


 NOTHING
 668 views


Load More
Copyright © 2017- 2023. DunSO All rights reserved.

  • Home
  • Algorithm
    • LeetCode
    • LintCode
    • HDUOJ
  • Online Judge
  • Archive

What do you want to search...

