自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 问答 (2)
  • 收藏
  • 关注

原创 Leetcode #7 Reverse Integer

题目原文 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 题目的意思很简单,把一个整数倒过来。值得注意的有以下几点: 注意倒过来之后的溢出问题,溢出的话返回0 注意0结尾的数字,翻转之后要把0拿去。 提交代码int reverse(int x) {

2015-08-24 16:24:21 345

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

2015-08-24 11:46:44 315

原创 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, and there exists one unique longest palindromic substring. 这道题是字符串处理中非常经典的题目,求

2015-08-09 17:18:42 321

原创 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)). 这道题是第一道标为hard的题,要求求出两个

2015-08-09 17:10:20 276

原创 LeetCode #3 Longest Substring Without Repeating Characters

题目原文 Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for “abcabcbb” is “abc”, which the lengt

2015-08-09 16:59:47 340

原创 LeetCode #2 Add Two Numbers

题目原文 提交代码题目原文 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers an

2015-08-09 16:28:17 255

原创 LeetCode #1 Two Sum

题目原文 提交代码题目原文 Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up

2015-08-09 16:23:48 337

空空如也

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

TA关注的人

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