算法学习
空谷幽鸣
读万卷书,行万里路
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
文章标题 leetcode刷题日记——最长子串
ExamplesGiven “abcabcbb”, the answer is “abc”, which the length is 3.Given “bbbbb”, the answer is “b”, with the length of 1.Given “pwwkew”, the answer is “wke”, with the length of 3. Note that the answ原创 2017-08-22 11:44:38 · 353 阅读 · 0 评论 -
leetcode 刷题日记——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)). Example 1: nums1 = [1,原创 2017-08-22 11:48:01 · 239 阅读 · 0 评论 -
leetcode刷题日记—— Longest Continuous Increasing Subsequence
Given an unsorted array of integers, find the length of longest continuous increasing subsequence. Example 1: Input: [1,3,5,4,7] Output: 3 Explanation: The longest continuous increasing subsequenc原创 2017-09-12 10:51:11 · 426 阅读 · 0 评论 -
leetcode 刷题24----Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. Example: Given 1->2->3->4, you should return the list as 2->1->4->3. Note: Your algorithm should use only ...原创 2018-04-26 10:45:07 · 183 阅读 · 0 评论 -
leetcode 刷题日记--Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative 这道题让我们求两个字符串数字的相乘,输入的两个数和返回的数都是以字符串格式储存的,这...原创 2018-08-28 22:04:55 · 192 阅读 · 0 评论
分享