02 2016 档案

摘要:题目链接 "https://leetcode.com/problems/same tree/" 题目原文 Given two binary trees, write a function to check if they are equal or not. Two binary trees are 阅读全文
posted @ 2016-02-26 19:24 slurm 阅读(152) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/recover binary search tree/" 题目原文 Two elements of a binary search tree (BST) are swapped by mistake. Recover the t 阅读全文
posted @ 2016-02-26 19:21 slurm 阅读(220) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/validate binary search tree/" 题目原文 Given a binary tree, determine if it is a valid binary search tree (BST). Assum 阅读全文
posted @ 2016-02-26 19:15 slurm 阅读(817) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/interleaving string/" 题目原文 Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For examp 阅读全文
posted @ 2016-02-26 19:10 slurm 阅读(194) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/unique binary search trees/" 题目原文 Given n, how many structurally unique BST's (binary search trees) that store val 阅读全文
posted @ 2016-02-26 19:06 slurm 阅读(296) 评论(0) 推荐(0)
摘要:题目链接 "https://leetcode.com/problems/unique binary search trees ii/" 题目原文 Given n, generate all structurally unique BST's (binary search trees) that st 阅读全文
posted @ 2016-02-23 16:55 slurm 阅读(391) 评论(0) 推荐(0)
摘要:题目链接 "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 阅读(443) 评论(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 阅读(352) 评论(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 阅读(218) 评论(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 阅读(187) 评论(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)