![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
Autumncow
这个作者很懒,什么都没留下…
展开
-
LeetCode第4题C语言题解
description: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)).You may assu...原创 2019-01-23 15:05:45 · 991 阅读 · 0 评论 -
LeetCode第2题C语言题解
Description: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 digit. Add the two number...原创 2019-01-23 16:23:51 · 621 阅读 · 0 评论 -
LeetCode 第三题 Longest Substring Without Repeating Characters
Given a string, find the length of thelongest substringwithout repeating characters找到最长非重复子序列。思路:采用动态规划法,字符串中每一个元素的对应的最长子串是变化的,后一个元素的子串长度,可以基于前一个元素进行计算。定义一个L[100000],记录各个元素的最长子串的长度,L[i]有两种情况,①...原创 2019-03-13 22:08:59 · 154 阅读 · 0 评论 -
LeetCode 16题. 3Sum Closest
Given an arraynumsofnintegers and an integertarget, find three integers innumssuch that the sum is closest totarget. Return the sum of the three integers. You may assume that each input would ...原创 2019-03-14 22:29:21 · 217 阅读 · 0 评论