随笔分类 -  Leetcode

摘要:题目链接 "https://leetcode.com/problems/binary tree inorder traversal/" 题目原文 Given a binary tree, return the inorder traversal of its nodes' values. For e 阅读全文
posted @ 2016-02-23 16:34 slurm 阅读(364) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/restore ip addresses/" 题目原文 Given a string containing only digits, restore it by returning all possible valid IP a 阅读全文
posted @ 2016-02-23 16:23 slurm 阅读(403) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/reverse linked list ii/" 题目原文 Reverse a linked list from position m to n. Do it in place and in one pass. For exam 阅读全文
posted @ 2016-02-23 15:33 slurm 阅读(376) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/decode ways/" 题目原文 A message containing letters from is being encoded to numbers using the following mapping: 'A' 阅读全文
posted @ 2016-02-23 15:12 slurm 阅读(465) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/subsets ii/" 题目原文 Given a collection of integers that might contain duplicates, nums, return all possible subsets. 阅读全文
posted @ 2016-02-22 10:02 slurm 阅读(441) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/gray code/" 题目原文 The gray code is a binary numeral system where two successive values differ in only one bit. Give 阅读全文
posted @ 2016-02-22 09:59 slurm 阅读(351) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/merge sorted array/" 题目原文 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted ar 阅读全文
posted @ 2016-02-22 09:55 slurm 阅读(396) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/scramble string/" 题目原文 We say that "rgtae" is a scrambled string of "great". Given two strings s1 and s2 of the sa 阅读全文
posted @ 2016-02-22 09:52 slurm 阅读(217) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/partition list/" 题目原文 Given a linked list and a value x, partition it such that all nodes less than x come before 阅读全文
posted @ 2016-02-22 09:45 slurm 阅读(186) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/maximal rectangle/" 题目原文 Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing a 阅读全文
posted @ 2016-02-03 14:03 slurm 阅读(492) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/largest rectangle in histogram/" 题目原文 Given n non negative integers representing the histogram's bar height where 阅读全文
posted @ 2016-02-03 13:56 slurm 阅读(323) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/remove duplicates from sorted list/" 题目原文 Given a sorted linked list, delete all duplicates such that each element 阅读全文
posted @ 2016-02-03 13:44 slurm 阅读(209) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/remove duplicates from sorted list ii/" 题目原文 Given a sorted linked list, delete all nodes that have duplicate numb 阅读全文
posted @ 2016-02-02 22:56 slurm 阅读(328) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/search in rotated sorted array ii/" 题目原文 Follow up for "Search in Rotated Sorted Array": What if duplicates are al 阅读全文
posted @ 2016-02-02 22:39 slurm 阅读(198) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/remove duplicates from sorted array ii/" 题目原文 Follow up for "Remove Duplicates": What if duplicates are allow... 阅读全文
posted @ 2016-01-26 14:29 slurm 阅读(143) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/word search/" 题目原文 Given a 2D board and a word, find if the word exists in the grid. The word can be constru... 阅读全文
posted @ 2016-01-26 14:10 slurm 阅读(690) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/subsets/" 题目原文 Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subs... 阅读全文
posted @ 2016-01-26 13:46 slurm 阅读(385) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/combinations/" 题目原文 Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.... 阅读全文
posted @ 2016-01-26 13:38 slurm 阅读(493) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/minimum window substring/" 题目原文 Given a string S and a string T, find the minimum window in S which will cont... 阅读全文
posted @ 2016-01-26 13:24 slurm 阅读(612) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/sort colors/" 题目原文 Given an array with n objects colored red, white or blue, sort them so that objects of the... 阅读全文
posted @ 2016-01-15 11:07 slurm 阅读(194) 评论(0) 推荐(0)