![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
叉腰大魔王
这个作者很懒,什么都没留下…
展开
-
Leetcode第三题_Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters Total Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters原创 2015-05-10 15:58:14 · 1078 阅读 · 0 评论 -
Leetcode第四题_Median of Two Sorted Arrays
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)).这是原创 2015-05-11 20:19:33 · 868 阅读 · 0 评论 -
Leetcode第一题_Two Sum
leetcode算法题第一题Two Sum,题目如下Two Sum Total Accepted: 86454 Total Submissions: 490141 My Submissions Question Solution Given an array of integers, find two numbers such that they add up to a specific tar原创 2015-05-04 11:25:26 · 663 阅读 · 0 评论 -
Leetcode第五题_Longest Palindromic Substring
Longest Palindromic SubstringGiven 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 substrin原创 2015-05-12 19:44:00 · 802 阅读 · 0 评论 -
Leetcode第二题_Add Two Numbers
Add Two Numbers Total Accepted: 58281 Total Submissions: 266931 My Submissions Question Solution You are given two linked lists representing two non-negative numbers. The digits are stored in reverse原创 2015-05-06 17:25:07 · 584 阅读 · 0 评论 -
Leetcode第六题_ZigZag Conversion
ZigZag ConversionThe 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原创 2015-05-14 13:12:42 · 821 阅读 · 0 评论 -
Leetcode第七题_Reverse Integer
Reverse IntegerReverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321这题比较容易,就是把给的一个数,反顺序输出而已。直接对10取余数,把每一位数字读出来,再生成一个新的数就可以了,边界有一个溢出的问题,在这里,我选择的方法是定义一个long类型的变量,该变量原创 2015-05-14 22:54:12 · 642 阅读 · 0 评论 -
(atoi)Leetcode第八题_String to Integer (atoi)
String to Integer (atoi)Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are th原创 2015-05-18 14:49:51 · 613 阅读 · 0 评论 -
Leetcode第九题_Palindrome Number
Palindrome Number Some hints:Could negative integers be palindromes? (ie, -1)If you are thinking of converting the integer to string, note the restriction of using extra space.You could also try revers原创 2015-05-19 00:22:48 · 552 阅读 · 0 评论