leetcode解题报告
jackllvv
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode(10) Regular Expression Matching解题报告
正则式匹配 问题: ‘.’ Matches any single character. ‘*’ Matches zero or more of the preceding element. The matching should cover the entire input string (not partial). The function prototype s原创 2018-01-24 17:00:50 · 202 阅读 · 0 评论 -
LeetCode(9) Palindrome Number解题报告
判断一个整数是否为回文串 问题: Determine whether an integer is a palindrome. Do this without extra space. 翻译: 判断一个整数是否为回文串,不要使用额外的空间。 解题方案: 对于位数是偶数位的整数,我们只需要将整数平均分为两部分:高位部分和低位部分,将低位部分反转并和高位部分比较,原创 2018-01-24 15:38:22 · 176 阅读 · 0 评论 -
LeetCode(8) String to Integer (atoi)解题报告
LeetCode String to Integer 字符转数字原创 2017-12-15 16:07:00 · 236 阅读 · 0 评论 -
LeetCode(7) Given a 32-bit signed integer, reverse digits of an integer解题报告
将一个整数反转原创 2017-12-15 11:27:52 · 1154 阅读 · 0 评论 -
LeetCode(6) ZigZag Conversion解题报告
z型转换原创 2017-12-13 15:39:10 · 195 阅读 · 0 评论 -
LeetCode(5) Longest Palindromic Substring解题报告
最长回文串Question Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 大意 给定一个字符串s,找到s的最长回文子串。字符串的最大长度为1000. Example Example: Input:原创 2017-12-12 14:55:22 · 189 阅读 · 0 评论 -
LeetCode(4) Median of Two Sorted Arrays解题报告
求两个有序数组的中位数 Problem 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))原创 2017-12-07 12:02:07 · 217 阅读 · 0 评论 -
LeetCode(3) Longest Substring Without Repeating Characters解题报告
LeetCode(3) Longest Substring Without Repeating CharactersProblem Given a string, find the length of the longest substring without repeating characters. 大意:求字符串最长没有重复字符的子串的长度。 Example Given “abcabc原创 2017-11-27 15:36:18 · 180 阅读 · 0 评论 -
LeetCode(2) Add Two Numbers解题报告
LeetCode(2) Add Two Numbersquestion: 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 d原创 2017-11-27 12:27:27 · 200 阅读 · 0 评论 -
LeetCode(11) Container With Most Water(盛水最多的容器)
盛水最多的容器 问题: Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i...原创 2018-04-09 00:07:04 · 218 阅读 · 0 评论
分享