
leetcode
RUN_D
如果有来生,
要做一棵树,
站成永恒。
没有悲欢的姿势,
一半在尘土里安详,
一半在风里飞扬;
一半洒落荫凉,
一半在沐浴阳光。
非常沉默、非常骄傲。
从不依靠、从不寻找。
展开
-
【LeetCode】C# 38、Count and Say
数数题原创 2017-10-11 19:08:08 · 374 阅读 · 0 评论 -
【LeetCode】C# 56、Merge Intervals
合并区间。原创 2017-10-13 16:25:52 · 407 阅读 · 0 评论 -
【LeetCode】C# 58、Length of Last Word
求最后一个单词的长度。原创 2017-10-13 16:33:09 · 272 阅读 · 0 评论 -
【LeetCode】C# 59、Spiral Matrix II
给定数字n返回一个n阶方阵,方阵中的数字按螺旋的形式从左上角的1排列到方阵中心。原创 2017-10-13 16:42:36 · 330 阅读 · 0 评论 -
【LeetCode】C# 60、Permutation Sequence
给定n,k,返回n个数的排列组合中的第k个,排列组合按从小到大排序。原创 2017-10-13 17:07:29 · 261 阅读 · 0 评论 -
【LeetCode】C# 61、Rotate List
给定链表和value k,在链表第k位翻转。原创 2017-10-15 09:52:43 · 230 阅读 · 0 评论 -
【LeetCode】C# 62、Unique Paths
判断机器人有几种路线到达终点。在只能往下往右走的情况下。原创 2017-10-15 09:59:59 · 254 阅读 · 0 评论 -
【LeetCode】C# 63、Unique Paths II
延续上题Unique Path。在mn矩阵的举出上加上一些为1的元素。当格子为一,则线路不通。原创 2017-10-15 10:11:49 · 211 阅读 · 0 评论 -
【LeetCode】C# 64、Minimum Path Sum
找到m×n矩阵中左上到右下和最小的路线并返回其和。原创 2017-10-15 10:18:27 · 211 阅读 · 0 评论 -
【LeetCode】C# 55、Jump Game
类似飞机棋的跳跃题。原创 2017-10-13 15:33:09 · 360 阅读 · 0 评论 -
【LeetCode】C# 54、Spiral Matrix
螺旋走完矩阵并返回路径。原创 2017-10-13 14:47:46 · 251 阅读 · 0 评论 -
【LeetCode】C# 53、Maximum Subarray
给定数组,找出其中和最大的区间。原创 2017-10-13 14:38:42 · 384 阅读 · 0 评论 -
【LeetCode】C# 39、Combination Sum
给定数组和目标值,数组中的个别值拼凑求和,把所有符合条件的组合返回。原创 2017-10-11 21:05:44 · 583 阅读 · 1 评论 -
【LeetCode】C# 40、Combination Sum II
给定无序数组和一目标值,给出其中所有和为目标的子集合。原创 2017-10-11 21:21:25 · 408 阅读 · 0 评论 -
【LeetCode】C# 43、Multiply Strings
计算两个字符串表示的非负大整数的乘积,结果仍然用字符串表示。原创 2017-10-11 22:07:53 · 231 阅读 · 0 评论 -
【LeetCode】C# 46、Permutations
排列组合原创 2017-10-12 11:35:12 · 666 阅读 · 0 评论 -
【LeetCode】C# 47、Permutations II
包含重复数的递归问题原创 2017-10-12 12:58:42 · 260 阅读 · 0 评论 -
【LeetCode】C# 48、Rotate Image
旋转方阵原创 2017-10-12 15:50:44 · 350 阅读 · 0 评论 -
【LeetCode】C# 49、Group Anagrams
给字符串组分类。原创 2017-10-12 16:41:27 · 439 阅读 · 0 评论 -
【LeetCode】C# 50、Pow(x, n)
Implement pow(x, n).计算x的n次幂。原创 2017-10-12 22:39:03 · 309 阅读 · 0 评论 -
【LeetCode】C# 66、Plus One
数组加一操作。原创 2017-10-15 10:35:31 · 531 阅读 · 0 评论 -
【LeetCode】C# 67、Add Binary
二进制数求和。原创 2017-10-15 10:43:03 · 523 阅读 · 0 评论 -
【LeetCode】C# 69、Sqrt(x)
求平方根。原创 2017-10-15 15:22:01 · 500 阅读 · 0 评论 -
【LeetCode】C# 83、Remove Duplicates from Sorted List
去除给定有序链表中重复部分。原创 2017-10-16 10:52:55 · 324 阅读 · 0 评论 -
【LeetCode】C# 86、Partition List
给定单链表和整数x,把单链表中小于x的放前面,大于等于的放后面,且每个数原始相对位置不变。原创 2017-10-16 11:05:11 · 303 阅读 · 0 评论 -
【LeetCode】C# 108、Convert Sorted Array to Binary Search Tree
给定一个升序数组,把他们转化为一个高度平衡的BST。原创 2017-10-25 16:05:10 · 389 阅读 · 0 评论 -
【LeetCode】C# 109、Convert Sorted List to Binary Search Tree
给定一个升序单向链表,将其转化为以一个高度平衡的查询二叉树。原创 2017-10-25 16:36:33 · 294 阅读 · 0 评论 -
【LeetCode】C# 110、Balanced Binary Tree
给定二叉树并判定其是否为高度平衡的二叉树。原创 2017-10-25 16:51:16 · 411 阅读 · 0 评论 -
【LeetCode】C# 88、Merge Sorted Array
题意:整合两个有序数组为一个原创 2017-10-17 10:30:46 · 380 阅读 · 0 评论 -
【LeetCode】C# 89、Gray Code
题意:给定非负整数n,返回对应的所有n位二进制数。相邻的二进制数中只能有一位不同。原创 2017-10-17 10:54:46 · 250 阅读 · 0 评论 -
【LeetCode】C# 90、Subsets II
给定数集,返回所有子集原创 2017-10-17 10:59:19 · 318 阅读 · 0 评论 -
【LeetCode】C# 82、Remove Duplicates from Sorted List II
给定有序链表,只保留其中唯一的元素。原创 2017-10-16 10:34:41 · 167 阅读 · 0 评论 -
【LeetCode】C# 81、Search in Rotated Sorted Array II
在翻转过的包含重复数的数组中查找元素。原创 2017-10-16 10:24:54 · 174 阅读 · 0 评论 -
【LeetCode】C# 80、Remove Duplicates from Sorted Array II
给定有序数组。取出重复2次以上的元素。原创 2017-10-16 10:09:27 · 271 阅读 · 0 评论 -
【LeetCode】C# 70、Climbing Stairs
爬阶问题。每次爬1或2阶,问有多少种爬法。原创 2017-10-15 15:29:04 · 310 阅读 · 0 评论 -
【LeetCode】C# 71、Simplify Path
简化IP地址。原创 2017-10-15 15:36:51 · 195 阅读 · 0 评论 -
【LeetCode】C# 73、Set Matrix Zeroes
给定矩阵,若某元素为0,则令该行该列为0。原创 2017-10-15 15:56:35 · 239 阅读 · 0 评论 -
【LeetCode】C# 74、Search a 2D Matrix
在二维矩阵中找值。原创 2017-10-16 08:56:15 · 232 阅读 · 0 评论 -
【LeetCode】C# 75、Sort Colors
把相同颜色(数字)整理到一起。原创 2017-10-16 09:24:52 · 248 阅读 · 0 评论 -
【LeetCode】C# 77、Combinations
给定两个值k,n,返回用n个数字中的k个形成的所有排列组合。原创 2017-10-16 09:31:22 · 515 阅读 · 0 评论