博客专栏  >  编程语言   >  经典算法,LeetCode题目研究(Everyday Updating)

经典算法,LeetCode题目研究(Everyday Updating)

经典算法研究;LeetCode按标签分类整理,分析研究。分别用C++/C#和Python语言实现

关注
4 已关注
210篇博文
  • LeetCode已完成题目索引及管理工具(每天更新)

    算法研究的重要性 2 leetcode leetcode是面试算法真题,囊括了常用算法思想和经典题目,是算法入门和提升的好材料。我每天都至少训练一个题目,锻炼自己的逻辑思维和写算法的严密性。 3...

    2017-06-10 21:17
    726
  • Leetcode 55. Jump Game

    题目 Given an array of non-negative integers, you are initially positioned at the first index of the ...

    4天前 22:41
    216
  • 658. Find K Closest Elements

    Given a sorted array, two integers k and x, find the k closest elements to x in the array. The resul...

    6天前 12:59
    195
  • 138. Copy List with Random Pointer

    A linked list is given such that each node contains an additional random pointer which could point t...

    2017-08-13 07:55
    83
  • 133. Clone Graph

    Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ’s ...

    2017-08-13 06:23
    180
  • 61. Rotate List

    在指定位置旋转链表

    2017-08-11 17:13
    33
  • 240. Search a 2D Matrix II

    题目深度和宽度方向都是递增序列的二维数组,查看目标值是否存在。 Write an efficient algorithm that searches for a value in an m x n ...

    2017-08-05 17:33
    40
  • 74. Search a 2D Matrix

    分别在深度方向和宽度方向二查搜索。题目Write an efficient algorithm that searches for a value in an m x n matrix. This m...

    2017-08-05 07:33
    89
  • 80. Remove Duplicates from Sorted Array II

    题目可以重复一次的去重操作Follow up for “Remove Duplicates”: What if duplicates are allowed at most twice?For ex...

    2017-07-31 17:43
    197
  • 59. Spiral Matrix II

    题目生成螺旋矩阵 Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral o...

    2017-07-30 15:17
    187
  • 54. Spiral Matrix

    螺旋式遍历矩阵 如下图所示的方法。 Given a matrix of m x n elements (m rows, n columns), return all elements of the...

    2017-07-30 14:48
    221
  • 90. Subsets II

    题目Given a collection of integers that might contain duplicates, nums, return all possible subsets.No...

    2017-07-29 19:20
    249
  • 78. Subsets

    题目Given a set of distinct integers, nums, return all possible subsets.Note: The solution set must no...

    2017-07-29 18:38
    159
  • 60. Permutation Sequence

    题目求n个排序数的第k项 The set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling...

    2017-07-29 15:54
    188
  • 147. Sort a linked list using insertion sort

    题目Sort a linked list using insertion sort.代码public ListNode InsertionSortList(ListNode head) ...

    2017-07-27 17:22
    169
  • 142. Linked List Cycle II

    题目Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Not...

    2017-07-26 19:15
    228
  • 41. First Missing Positive

    Find Missing Number 系列问题,灵活运用index,或异或在O(n)时间复杂度,O(1)空间复杂度解决问题。题目Given an unsorted integer array, fi...

    2017-07-26 11:16
    70
  • 47. Permutations II

    原题求解带有重复元素的序列的所有排序 Given a collection of numbers that might contain duplicates, return all possible...

    2017-07-25 17:22
    104
  • 46. Permutations

    求一个序列的所有排序组合。题目Given a collection of distinct numbers, return all possible permutations.For example,...

    2017-07-25 14:37
    94
  • 31. Next Permutation

    求其下一个排序数的思路: 1. **逆序**搜索,找到第一个满足 $$nums[i-1]=1子序列的最小值。 最小值为 **4**;即交换 3 和 4,得到的序列为:**4** 5 **3** 2 ...

    2017-07-25 08:33
    85

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