![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
<专栏> --LeetCode OJ 题解
LaoJiu_
这个作者很懒,什么都没留下…
展开
-
LeetCode 4 : Median of Two Sorted Arrays ---- 两排序数组的中位数
原题链接: https://leetcode.com/problems/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. Th原创 2016-05-18 16:36:45 · 1187 阅读 · 0 评论 -
LeetCode 1 : Two Sum ---- 哈希&数组
原题链接:https://leetcode.com/problems/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 that each input w原创 2016-05-16 14:21:04 · 1426 阅读 · 0 评论 -
LeetCode 2 : Add Two Numbers ---- 单链表相加
原题链接: https://leetcode.com/problems/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 n原创 2016-05-16 17:34:33 · 901 阅读 · 0 评论 -
LeetCode 3 : Longest Substring Without Repeating Characters ---- 不重复的子串
原题链接: https://leetcode.com/problems/longest-substring-without-repeating-characters/ 一:原题内容 Given a string, find the length of the longest substring without repeating characters. Examples:原创 2016-05-18 14:21:09 · 767 阅读 · 0 评论 -
LeetCode 5 : Longest Palindromic Substring ---- 最长回文
原题链接: https://leetcode.com/problems/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,原创 2016-05-19 18:05:22 · 765 阅读 · 0 评论 -
LeetCode 6 :ZigZag Conversion ---- 数学找规律
原题链接: https://leetcode.com/problems/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原创 2016-06-13 21:50:43 · 768 阅读 · 0 评论 -
LeetCode 7 :Reverse Integer ---- 反转int整数
原题链接: https://leetcode.com/problems/reverse-integer/ 一:原题内容 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 二:分析理解 我们需要考虑反转后的数可能会溢出int给出原创 2016-06-18 23:15:36 · 1007 阅读 · 0 评论 -
LeetCode OJ 题解目录(C++ & Python)
说明:对于过简单的题目,例如a+b类的,不收录在内。原创 2016-05-15 20:23:27 · 1314 阅读 · 0 评论