博客专栏  >  综合   >  LeetCode

LeetCode

小白LeetCode路程。

关注
2 已关注
35篇博文
  • LeetCode目录。

    按照LeetCode的Tags来区分的话,目前共有34个Tag,只列出已经解决的题,各分类中按照题目编号排序:Linked List。Solved:20/28 # Title Diffic...

    昨天 18:41
    31
  • 561. Array Partition I。

    Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1...

    昨天 20:35
    192
  • 725. Split Linked List in Parts。

    Given a (singly) linked list with head node root, write a function to split the linked list into k c...

    昨天 20:53
    217
  • 61. Rotate List。

    Given a list, rotate the list to the right by k places, where k is non-negative.For example: Given ...

    2017-10-23 14:12
    297
  • 143. 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 th...

    2017-10-20 19:20
    453
  • 92. Reverse Linked List II。

    Reverse a linked list from position m to n. Do it in-place and in one-pass.For example: Given 1->2-...

    2017-10-17 18:00
    364
  • 82. Remove Duplicates from Sorted List II。

    Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numb...

    2017-10-17 17:26
    393
  • 86. Partition List。

    Given a linked list and a value x, partition it such that all nodes less than x come before nodes gr...

    2017-09-26 23:07
    283
  • 142. Linked List Cycle II。

    Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Note:...

    2017-09-26 23:20
    303
  • 147. Insertion Sort List。

    Sort a linked list using insertion sort.使用插入排序来排序链表。可以按照数组中的思路来做,先将创建一个新的链表,然后每次将原来的链表中的第一个节点拿出来与新的链...

    2017-09-25 21:45
    464
  • 19. Remove Nth Node From End of List。

    Given a linked list, remove the nth node from the end of list and return its head.For example, Giv...

    2017-09-25 21:41
    414
  • 633. Sum of Square Numbers。

    Given a non-negative integer c, your task is to decide whether there’re two integers a and b such th...

    2017-09-22 21:15
    656
  • 1. Two Sum。

    Given an array of integers, return indices of the two numbers such that they add up to a specific ta...

    2017-09-22 21:06
    506
  • 2. Add Two Numbers。

    You are given two non-empty linked lists representing two non-negative integers. The digits are stor...

    2017-09-22 19:37
    359
  • 328. Odd Even Linked List。

    Given a singly linked list, group all odd nodes together followed by the even nodes. Please note her...

    2017-09-22 19:57
    417
  • 445. Add Two Numbers II。

    You are given two non-empty linked lists representing two non-negative integers. The most significan...

    2017-09-22 19:48
    353
  • 21. Merge Two Sorted Lists。

    Merge two sorted linked lists and return it as a new list. The new list should be made by splicing t...

    2017-09-19 23:10
    136
  • 24. Swap Nodes in Pairs。

    Given a linked list, swap every two adjacent nodes and return its head.For example, Given 1->2->3->...

    2017-09-22 20:04
    467
  • 234. Palindrome Linked List。

    Given a singly linked list, determine if it is a palindrome.Follow up: Could you do it in O(n) time...

    2017-09-19 23:21
    132
  • 160. Intersection of Two Linked Lists。

    Write a program to find the node at which the intersection of two singly linked lists begins.For exa...

    2017-09-19 23:39
    128

img博客搬家
img撰写博客
img发布 Chat
img专家申请
img意见反馈
img返回顶部