LeetCode题解
文章平均质量分 60
LeetCode题目解析
7-sevens
跑马拉松的程序员
展开
-
【数据结构】线性表之顺序表
顺序表是在计算机内存中以数组的形式保存的线性表,是指用一组地址连续的存储单元依次存储数据元素的线性结构,逻辑结构与存储位置吻合。 。。原创 2018-04-06 17:05:27 · 311 阅读 · 0 评论 -
LeetCode-2:Add Two Numbers
一、题目原题链接:https://leetcode.com/problems/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 ...原创 2018-04-06 17:17:04 · 154 阅读 · 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: Gi...原创 2018-04-07 23:47:28 · 165 阅读 · 0 评论 -
LeetCode-4:Median of Two Sorted Arrays
一、题目原题链接:https://leetcode.com/problems/median-of-two-sorted-arrays/description/ 难度等级:困难There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted...原创 2018-04-08 23:05:48 · 150 阅读 · 0 评论 -
LeetCode-5:Longest Palindromic Substring
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 1: Input: “babad” ...原创 2018-07-14 00:00:08 · 147 阅读 · 0 评论 -
LeetCode-6:ZigZag Conversion.
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 1: Input: “babad” Ou...原创 2018-07-17 23:58:35 · 171 阅读 · 0 评论 -
LeetCode-7:Reverse Integer
Reverse Integer. 反转整数.一、题目Given a 32-bit signed integer, reverse digits of an integer.Example 1: Input: 123 Output: 321Example 2: Input: -123 Output: -321Example 3: ...原创 2018-07-18 00:06:06 · 255 阅读 · 0 评论