LeetCode题解
夕舞雪薇
这个作者很懒,什么都没留下…
展开
-
004_LeetCode_4 Median of Two Sorted Arrays 题解
Media of Two Sorted Arrays原创 2017-10-15 22:39:41 · 198 阅读 · 0 评论 -
010_LeetCode_10 Regular Expression Matching 题解
LeetCode_10原创 2017-11-21 21:04:37 · 202 阅读 · 0 评论 -
011_LeetCode_11 Container With Most Water 题解
LeetCode原创 2017-12-01 09:16:46 · 238 阅读 · 0 评论 -
012_LeetCode_12 Integer to Roman 题解
leetcode原创 2017-12-02 20:49:38 · 203 阅读 · 0 评论 -
013_LeetCode_13 Roman to Integer 题解
leetcode原创 2017-12-02 21:04:22 · 200 阅读 · 0 评论 -
LeetCode 题解
目录LeetCode_1 Two SumLeetCode_2 Add Two NumbersLeetCode_3 Longest Substring Without Repeating CharactersLeetCode_4 Median of Two Sorted ArraysLeetCode_5 Longest Palindromic SubstringLeetCode_6 ...原创 2017-10-07 21:57:03 · 412 阅读 · 0 评论 -
014_LeetCode_14 Longest Common Prefix 题解
Description:Write a function to find the longest common prefix string amongst an array of strings.找到一个字符串数组中,所有元素字符串的公共前缀解:最简单的思路:从字符串数组的第一个字符串开始逐个和后一个字符串计算他们的公共前缀,最后返回。 更好的解法:参见 评论区...原创 2018-03-21 00:09:33 · 159 阅读 · 0 评论 -
015_LeetCode_15 3Sum 题解
Description: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. 在列表中找到三个相加为0的元素Note: Th...原创 2018-03-25 23:37:31 · 216 阅读 · 0 评论 -
016_LeetCode_16 3Sum Closest
题目描述给定一个包括 n 个整数的数组 S,找出 S 中的三个整数使得他们的和与给定的数 target 最接近。返回这三个数的和。假定每组输入只存在一个答案。例如,给定数组 S = {-1 2 1 -4}, 并且 target = 1.与 target 最接近的三个数的和为 2. (-1 + 2 + 1 = 2).解: 采用和十五题类似的思想,将判断改为三个数加起来大...原创 2018-03-31 23:12:31 · 144 阅读 · 0 评论 -
009_LeetCode_9 Palindrome Number 题解
LeetCode_9原创 2017-11-21 20:00:15 · 227 阅读 · 0 评论 -
008_LeetCode_8 String to Integer (atoi) 题解
LeetCode_8原创 2017-11-20 14:17:38 · 203 阅读 · 0 评论 -
005_LeetCode_5 Longest Palindromic Substring 题解
最长回文子串原创 2017-11-01 23:13:36 · 215 阅读 · 0 评论 -
001_LeetCode_1 Two Sum 题解
LeetCode_1原创 2017-10-06 10:10:54 · 280 阅读 · 0 评论 -
002_LeetCode_2 Add Two Numbers 题解
LeetCode_2原创 2017-10-06 22:52:37 · 232 阅读 · 0 评论 -
003_LeetCode_3 Longest Substring Without Repeating Characters 题解
LeetCode_3原创 2017-10-08 23:07:27 · 180 阅读 · 0 评论 -
349_LeetCode_349 Intersection of Two Arrays 题解
LeetCode_349原创 2017-10-07 22:31:22 · 188 阅读 · 0 评论 -
350_LeetCode_350 Intersection of Two Arrays II 题解
LeetCode_350 Intersection of Two Arrays II原创 2017-10-07 22:47:47 · 202 阅读 · 0 评论 -
007_LeetCode_7 Reverse Integer 题解
LeetCode_7原创 2017-11-18 19:38:34 · 176 阅读 · 0 评论 -
006_LeetCode_6 ZigZag Conversion 题解
LeetCode_6原创 2017-11-14 21:18:41 · 199 阅读 · 0 评论 -
017_LeetCode_17 Letter Combinations of a Phone Number
题目描述给定一个数字字符串,返回数字所有可能表示的字母组合。数字到字母的映射和电话号码一样.输入:数字字符串 "23"输出:["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].解: 递归0.0java代码:原创 2018-03-31 23:30:15 · 160 阅读 · 0 评论