
vector
文章平均质量分 69
sysu_xiamengyou
这个作者很懒,什么都没留下…
展开
-
一、[LeetCode OJ]3Sum题解
【问题描述】Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The solution set mu原创 2017-02-25 12:58:58 · 431 阅读 · 0 评论 -
[LeetCode OJ]Longest Substring Without Repeating Characters
【问题描述】Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the原创 2017-03-19 15:15:59 · 340 阅读 · 0 评论 -
[LeetCode OJ]Valid Parentheses
【问题描述】Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}"原创 2017-03-09 20:41:18 · 303 阅读 · 0 评论 -
[LeetCode OJ]Combination Sum I && II
【问题描述】Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number ma原创 2017-03-09 21:07:43 · 371 阅读 · 0 评论 -
[LeetCode OJ]Super Washing Machines
问题描述:You have n super washing machines on a line. Initially, each washing machine has some dresses or is empty.For each move, you could choose any m (1 ≤ m ≤ n) washing machines, and pass on原创 2017-04-15 14:58:22 · 608 阅读 · 0 评论 -
[LeetCode OJ]Longest Palindromic Subsequence
【问题描述】Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000.Example 1:Input:"bbbab"Output:4One possible lo原创 2017-05-26 23:12:53 · 313 阅读 · 0 评论 -
[LeetCode OJ]Edit Distance
【问题描述】Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have the following 3 operations permitte原创 2017-06-14 15:54:30 · 352 阅读 · 0 评论