[LeetCode] Next Permutation 解题报告

摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl... 阅读全文
posted @ 2012-12-28 13:46 小刀初试 阅读(177) 评论(0) 推荐(0)

[LeetCode] Multiply Strings 解题报告

摘要: Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega... 阅读全文
posted @ 2012-12-28 12:59 小刀初试 阅读(121) 评论(0) 推荐(0)

[LeetCode] Minimum Window Substring 解题报告

摘要: Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S = "ADOBECODE... 阅读全文
posted @ 2012-12-28 10:49 小刀初试 阅读(197) 评论(0) 推荐(0)

[LeetCode] Minimum Path Sum 解题报告

摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N... 阅读全文
posted @ 2012-12-28 07:24 小刀初试 阅读(204) 评论(0) 推荐(0)