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

经典算法,LeetCode题目研究

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

关注
4 已关注
211篇博文
  • leetcode已完成题目索引

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

    2017-06-10 21:17
    918
  • 131. Palindrome Partitioning

    深度优先搜索找字符串的子回文字符串

    4天前 17:15
    51
  • Leetcode 55. Jump Game

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

    2017-08-17 22:41
    342
  • 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...

    2017-08-15 12:59
    374
  • 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
    176
  • 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
    271
  • 61. Rotate List

    在指定位置旋转链表

    2017-08-11 17:13
    125
  • 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
    112
  • 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
    168
  • 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
    251
  • 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
    307
  • 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
    386
  • 90. Subsets II

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

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

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

    2017-07-29 18:38
    247
  • 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
    285
  • 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
    244
  • 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
    292
  • 41. First Missing Positive

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

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

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

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

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

    2017-07-25 14:37
    173
img博客搬家
img撰写博客
img发布 Chat
img专家申请
img意见反馈
img返回顶部