自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

夏夜之梦的博客

一只博客小白

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

原创 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 ...

2018-04-23 13:15:54 129

原创 LeetCode练习8:String to Integer (atoi)

题目Implement atoi which converts 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 from...

2018-04-23 10:56:36 125

原创 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) Example Input: s =...

2018-04-23 10:32:13 120

原创 LeetCode练习5:Longest Palindromic Substring

题目Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example: Input: “babad”, Output: “bab” (Note: “aba” is also a valid answer...

2018-04-22 22:39:15 90

原创 Python 3 编程BUG总结【不断更新】

问题1 SyntaxError: invalid character in identifier可能原因:存在中文状态下的括号(),而不是()代码的末尾有空格

2018-04-18 19:00:30 268

翻译 LeetCode练习4:Median of Two Sorted Arrays

题目There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example: nums1 = [...

2018-04-16 19:38:26 85

原创 LeetCode练习3: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 answer i...

2018-04-14 10:24:48 86

原创 LeetCode练习2:Add Two Numbers

题目You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and retu...

2018-04-13 22:26:10 80

原创 LeetCode练习13:Roman to Integer

题目Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.分析题目的输入为:一个1-3999范围内的罗马数字字符串输出为:对应的整数本题目只需要注意一下罗马数字的命名规则即可,首先罗马数字的基本字符包括:...

2018-04-13 15:30:30 107

原创 LeetCode练习9:Palindrome Number

题目Determine whether an integer is a palindrome. Do this without extra space.Some Hints: Could negative integers be palindromes? (ie, -1). If you are thinking of converting the integer to...

2018-04-12 16:26:43 139

原创 LeetCode练习7:Reverse Integer

题目Given a 32-bit signed integer, reverse digits of an integer.Example: Input: 123,Output: 321 Input: -123,Output: -321 Input: 120,Output: 21分析题目中的输入为:一个32位的有符号整数xxx. 输出为:倒序的整数x^x...

2018-04-11 13:40:50 190

原创 LeetCode练习1:Two Sum

题目Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume each input would have exactly one solution, and you may not use the same e...

2018-04-10 19:42:05 122

空空如也

空空如也

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

TA关注的人

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