
Leetcode_medium
文章平均质量分 73
simplify2012
这个作者很懒,什么都没留下…
展开
-
[Leetcode 92, medium] Reverse Linked-list II
Reverse Linked-list II原创 2015-03-12 08:40:59 · 382 阅读 · 0 评论 -
[Leetcode 73, medium] Set Matrix Zeroes
Problem:Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A straight forward solu原创 2015-04-05 19:04:04 · 466 阅读 · 0 评论 -
[Leetcode 187, medium] Repeated DNA Sequences
Repeated DNA Sequences原创 2015-03-27 11:38:22 · 479 阅读 · 0 评论 -
[Leetcode 43, medium] Multiply Strings
Problem:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-negative.Analysis:Solutions:原创 2015-04-05 04:17:17 · 465 阅读 · 0 评论 -
[Leetcode 131, Medium] Palindrome Partitioning
Leetcode Medium原创 2015-02-02 13:03:56 · 449 阅读 · 0 评论 -
[Leetcode 134, Medium] Gas Station
Leetcode, medium原创 2015-01-16 11:32:23 · 462 阅读 · 0 评论 -
[Leetcode 86, medium] Partition List
Partition List原创 2015-03-12 10:28:54 · 410 阅读 · 0 评论 -
[Leetcode 31, medium] Next Permutation
Problem:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the l原创 2013-11-12 04:24:51 · 853 阅读 · 0 评论 -
[Leetcode 93, Medium] Restore IP Addresses
Problem:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255.255.11.135", "255.255.111.3原创 2015-03-19 13:05:04 · 410 阅读 · 0 评论 -
[Leetcode 148, medium] Sort List
Sort List原创 2015-03-12 12:33:39 · 399 阅读 · 0 评论 -
[Leetcode 147, medium] Insertion Sort List
Insertion Sort List原创 2015-03-12 09:56:32 · 413 阅读 · 0 评论 -
[Leetcode 179, Medium] Largest number
Leetcode, Medium原创 2015-02-02 12:59:35 · 501 阅读 · 0 评论 -
[Leetcode 49, medium] Anagrams
Problem:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.For example:Input: ["tea","and","ate","eat","den"]Output原创 2013-11-09 03:20:00 · 604 阅读 · 0 评论 -
[Leetcode 74, medium] Search a 2D Matrix
[Leetcode 74, medium] Search a 2D Matrix原创 2015-04-05 13:46:46 · 501 阅读 · 0 评论 -
[Leetcode 48, medium] Rotate Image
[Leetcode 48, medium] Rotate Image原创 2015-04-05 02:10:26 · 423 阅读 · 0 评论 -
[Leetcode 53, medium] Maximal subarray
Maximal subarray原创 2015-03-22 03:54:47 · 379 阅读 · 0 评论 -
[Leetcode 82, Medium] Remove Duplicates from Sorted List II
Remove Duplicates from Sorted List II原创 2015-03-15 06:39:01 · 435 阅读 · 0 评论 -
[Leetcode 120, Medium] Triangle
Leetcode, Medium原创 2015-01-19 01:19:27 · 430 阅读 · 0 评论 -
[Leet code 153, medium] Find Minimum in Rotated Sorted Array
Problem:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).Find the minimum element.You may assume no duplic原创 2014-10-29 03:05:42 · 539 阅读 · 0 评论 -
[Leetcode 141 & 142, medium] Linked List Cycle (I and II)
Problem:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Solutions:One time passing.A typical problem which can be solved b原创 2013-11-22 04:39:26 · 861 阅读 · 0 评论 -
[leetcode 78 & 90, Medium] Subsets I and II
Subsets I and II原创 2013-11-12 05:57:33 · 1177 阅读 · 2 评论 -
[Leetcode77, medium] Combination
Problem:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4], [3,4], [2,3], [1,2],原创 2013-11-12 05:34:51 · 865 阅读 · 0 评论 -
[Leetcode 29, medium] Divide two integers
Problem:Divide two integers without using multiplication, division and mod operator.Solutions:The below two prgrams work.Programs:int divide(int dividend, int divisor) { lon原创 2013-11-12 03:17:44 · 737 阅读 · 0 评论 -
[Leetcode 15, medium] 3 Sum
[Leetcode 15, medium] 3 Sum原创 2015-04-07 11:05:32 · 328 阅读 · 0 评论 -
[Leetcode 126 & 127, hard & medium] Word Ladder II & I
[Leetcode 126 & 127, hard & medium] Word Ladder II & I原创 2015-04-05 01:03:08 · 572 阅读 · 0 评论 -
[Leetcode 201, medium] Bitwise AND of Numbers Range
[Leetcode 201, medium] Bitwise AND of Numbers Range原创 2015-04-19 03:29:38 · 501 阅读 · 0 评论 -
[Leetcode 200, medium] Number of Islands
[Leetcode 200, medium] Number of Islands原创 2015-04-19 04:41:34 · 466 阅读 · 0 评论 -
[Leetcode 130, medium] Surrounded regions
[Leetcode 130, medium] Surrounded regions原创 2015-04-19 04:31:19 · 434 阅读 · 0 评论 -
[Leetcode 18, medium] 4 Sum
[Leetcode 18, medium] 4 Sum原创 2015-04-07 10:43:14 · 363 阅读 · 0 评论 -
[Leetcode 139, medium] Word Break
[Leetcode 139, medium] Word Break原创 2015-04-20 08:12:03 · 571 阅读 · 0 评论 -
[Leetcode 55, Medium] Jump Game
[Leetcode 55, Medium] Jump Game原创 2015-05-09 16:41:04 · 504 阅读 · 0 评论 -
[Leetcode 96, Medium] Unique Binary Search Trees
[Leetcode 96, Medium] Unique Binary Search Trees原创 2015-05-09 16:47:22 · 441 阅读 · 0 评论 -
[Leetcode 199, Medium] Binary Tree Right Side View
[Leetcode 199, Medium] Binary Tree Right Side View原创 2015-05-04 10:47:26 · 402 阅读 · 0 评论 -
[Leetcode 201, Medium] Bitwise AND of Numbers Range
[Leetcode 201, Medium] Bitwise AND of Numbers Range原创 2015-05-04 10:45:02 · 456 阅读 · 0 评论 -
[Leetcode 200, Medium] Number of Islands
[Leetcode 200, Medium] Number of Islands原创 2015-05-04 10:47:13 · 469 阅读 · 0 评论 -
[Leetcode 54, Medium] Spiral Matrix
[Leetcode, Medium] Spiral Matrix原创 2015-05-04 10:54:35 · 475 阅读 · 0 评论 -
[Leetcode 5, Medium] Longest Palindromic Substring
[Leetcode 5, Medium] Longest Palindromic Substring原创 2015-05-12 11:16:47 · 428 阅读 · 0 评论 -
[Leetcode 60, Medium] Permutation Sequence
[Leetcode 60, Medium] Permutation Sequence原创 2015-05-04 10:58:28 · 468 阅读 · 0 评论 -
[Leetcode 59, Medium] Speral Matrix II
[Leetcode 59, Medium] Speral Matrix II原创 2015-05-05 07:55:46 · 435 阅读 · 0 评论 -
[Leetcode 39, Medium] Combination Sum
[Leetcode 39, Medium] Combination Sum原创 2015-05-15 11:07:19 · 458 阅读 · 0 评论