自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

希望的专栏

有梦的地方就有希望

  • 博客(14)
  • 收藏
  • 关注

原创 【LeetCode】14. Longest Common Prefix

题目: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string"". Example 1: Input: ["flower","flow","flight"] Ou...

2019-03-31 22:43:48 109

原创 【LeetCode】13. Roman to Integer

题目: Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM. Symbol Value I 1 V 5 X 10 L 50 C 100 D ...

2019-03-31 21:46:24 94

原创 【LeetCode】12. Integer to Roman

题目: Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM. Symbol Value I 1 V 5 X 10 L 50 C 100 D ...

2019-03-31 21:12:33 83

原创 【LeetCode】11. Container With Most Water

题目: Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of lineiis at (i,ai) and (i, 0). Find...

2019-03-31 09:53:23 479

原创 【LeetCode】10. Regular Expression Matching【未完待续】

题目: Given an input string (s) and a pattern (p), implement regular expression matching with support for'.'and'*'. '.' Matches any single character. '*' Matches zero or more of the preceding elem...

2019-03-30 23:53:07 92

原创 【LeetCode】9. Palindrome Number

题目: Determine whether an integer is a palindrome. An integerisapalindrome when itreads the same backward as forward. Example 1: Input: 121 Output: true Example 2: Input: -121 Output: false...

2019-03-29 20:17:38 58

原创 【LeetCode】8. String to Integer (atoi)

题目: Implementatoiwhichconverts a string to an integer. The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting fro...

2019-03-28 23:29:18 101

原创 【LeetCode】7. Reverse Integer

题目: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we ar...

2019-03-27 21:11:05 78

原创 【LeetCode】6. ZigZag Conversion

题目: The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L ...

2019-03-27 09:50:14 69

原创 【LeetCode】5. Longest Palindromic Substring

题目: Given a strings, find the longest palindromic substring ins. You may assume that the maximum length ofsis 1000. Example 1: Input: "babad" Output: "bab" Note: "aba" is also a valid answer. ...

2019-03-26 08:47:32 59

原创 【LeetCode】4. Median of Two Sorted Arrays 【未完待续】

题目: There are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). You may assumenums1...

2019-03-25 21:33:26 65

原创 【LeetCode】3. Longest Substring Without Repeating Characters

题目: Given a string, find the length of thelongest substringwithout repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Exampl...

2019-03-24 23:40:07 343

原创 【LeetCode】2. Add Two Numbers

题目: You are given twonon-emptylinked lists representing two non-negative integers. The digits are stored inreverse orderand each of their nodes contain a single digit. Add the two numbers and ret...

2019-03-24 22:26:24 77

原创 【LeetCode】1. Two Sum

原文: Given an array of integers, returnindicesof the two numbers such that they add up to a specific target. You may assume that each input would haveexactlyone solution, and you may not use the...

2019-03-23 09:04:56 97

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除