
leetcode
文章平均质量分 50
NewCoder_BL
new coder, keep moving
展开
-
907. Sum of Subarray Minimums
leetcode, 单调栈,monotonic stack, stack, array, 数组转载 2022-06-13 16:16:37 · 197 阅读 · 0 评论 -
1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.原创 2016-07-22 15:08:30 · 295 阅读 · 0 评论 -
15. 3Sum
leetcode,3sum原创 2016-07-22 15:29:11 · 270 阅读 · 0 评论 -
16. 3Sum Closest
3 sum closest原创 2016-07-22 16:18:47 · 181 阅读 · 0 评论 -
18. 4Sum
leetcode,4sum原创 2016-07-22 16:37:25 · 196 阅读 · 0 评论 -
283. Move Zeroes
双指针基本操作原创 2016-07-22 17:55:27 · 195 阅读 · 0 评论 -
217. Contains Duplicate
leetcode检索数组重复数字原创 2016-07-23 17:39:24 · 174 阅读 · 0 评论 -
219. Contains Duplicate II
leetcode,查找数组重复数字,讨论下标。原创 2016-07-23 17:54:02 · 182 阅读 · 0 评论 -
313. Super Ugly Number
找出第n个super ugly number;prime factor, priority queue;原创 2016-06-30 22:24:12 · 506 阅读 · 0 评论 -
147. Insertion Sort List
链表里的插入法排序,leetcode原题原创 2016-06-30 22:27:03 · 354 阅读 · 0 评论 -
88. merge sorted array
合并两个排序完成的序列,很多算法里的基本操作;leetcode原题原创 2016-07-01 16:29:19 · 236 阅读 · 0 评论 -
169. Majority Element
找出数组里重复次数超过一半数字。绝对众数。各类方法比较。摩尔投票法原创 2016-07-24 15:27:25 · 248 阅读 · 0 评论 -
229. Majority Element II
leetcode找众数,摩尔投票法,快速选择排序法原创 2016-07-24 19:02:17 · 243 阅读 · 0 评论 -
142. linkedlist cycle
链表找环,以及环的入口的最经典做法。快慢指针法。原创 2016-07-03 11:23:52 · 273 阅读 · 0 评论 -
287. Find the Duplicate Number
找数组重复数字,leetcode原题,常规算法和巧妙算法原创 2016-07-04 16:14:45 · 287 阅读 · 0 评论 -
55. Jump Game
jump game, 动态规划, leetcode原创 2016-07-26 16:29:17 · 228 阅读 · 0 评论 -
84. largest rectangle in histogram
数组里的最大矩形面积,leetcode原题原创 2016-02-03 11:14:57 · 424 阅读 · 0 评论 -
45. Jump Game II
jump game II, leetcode, dp, 动态规划原创 2016-07-26 19:20:46 · 235 阅读 · 0 评论 -
85. Maximal Rectangle
二维0,1矩阵找最大矩形面积。原创 2016-07-16 16:08:17 · 434 阅读 · 0 评论 -
232. Implement Queue using Stacks
Implement a queue using stacks.原创 2016-07-05 21:55:12 · 249 阅读 · 0 评论 -
225. Implement Stack using Queues
Implement a stack using queues.原创 2016-07-05 22:13:35 · 298 阅读 · 0 评论 -
53. Maximum Subarray
最大和的子数组,leetcode, 动态规划,分治法,divide and conquer原创 2016-07-28 00:53:22 · 181 阅读 · 0 评论 -
289. Game of Life
game of life, 生命游戏,棋盘类矩阵类算法题原创 2016-07-18 00:23:10 · 280 阅读 · 0 评论 -
258. Add Digits
leetcode找规律类型,非负整数各位数字求和原创 2016-07-30 15:30:05 · 241 阅读 · 0 评论 -
2. Add Two Numbers
leetcode 原题,链表下非负数加法实现原创 2016-07-30 21:36:41 · 215 阅读 · 0 评论 -
19. Remove Nth Node From End of List
链表删除特定位置节点,常见操作。双指针,dummy node.原创 2016-08-03 22:49:58 · 244 阅读 · 0 评论 -
4. Median of Two Sorted Arrays
两个排序好的数组,寻找中位数,寻找第K小的数。三种复杂度方法汇总。leetcode原题。原创 2016-08-04 11:26:03 · 237 阅读 · 0 评论 -
27. Remove Element
in place删除数组中元素原创 2016-08-02 12:05:42 · 218 阅读 · 0 评论 -
5. Longest Palindromic Substring
找字符串中最大的回文字符串。回文搜索基本做法,动态规划做法,马拉车算法。Manacher's algorithm。原创 2016-08-27 12:50:14 · 453 阅读 · 0 评论 -
91. Decode Ways
数字字符串解码问题,解码方法总数,动态规划,leetcode原题原创 2016-08-18 00:03:46 · 314 阅读 · 0 评论 -
389. Find the Difference
leetcode周赛简单题,寻找两个字符串差异项。原创 2016-08-29 03:10:28 · 597 阅读 · 0 评论 -
96. Unique Binary Search Trees
n个数字可以构建的二叉树总数,卡塔兰数,动态规划,递推原创 2016-08-29 05:18:48 · 337 阅读 · 0 评论 -
221. Maximal Square
二值矩阵里的最大正方形面积,动态规划,内存优化原创 2016-08-18 05:55:30 · 262 阅读 · 0 评论 -
98. Validate Binary Search Tree
判定二叉查找树的多种验证方法,遍历二叉树,递归原创 2016-08-30 07:04:38 · 319 阅读 · 0 评论 -
391. Perfect Rectangle
判断给定坐标的小矩形最后能否组成一个大矩形,且没有重叠原创 2016-09-09 23:14:26 · 542 阅读 · 0 评论 -
101. Symmetric Tree
递归和迭代两种方法遍历二叉树,判断树的对称性原创 2016-08-30 12:20:59 · 257 阅读 · 0 评论 -
371. Sum of Two Integers
不用算数运算符,也就是不用加减法之类的,做两个整数的加法。原创 2016-09-10 13:18:13 · 212 阅读 · 0 评论 -
72. Edit Distance
字符串转换问题,递归,divide and conquer, 动态规划,dynamic programming;原创 2016-08-20 05:29:35 · 192 阅读 · 0 评论 -
349. Intersection of Two Arrays
查找两个数组的公共部分,set的使用,二分法,双指针原创 2016-09-11 07:04:09 · 225 阅读 · 0 评论 -
398. Random Pick Index
leetcode周赛第四次原创 2016-09-11 12:13:06 · 1322 阅读 · 0 评论