上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: 阅读全文
posted @ 2019-06-06 09:01 赤云封天 阅读(93) 评论(0) 推荐(0)
摘要: The 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 阅读全文
posted @ 2019-06-05 17:21 赤云封天 阅读(111) 评论(0) 推荐(0)
摘要: 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 sh 阅读全文
posted @ 2019-06-05 11:41 赤云封天 阅读(113) 评论(0) 推荐(0)
摘要: Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the first non-white 阅读全文
posted @ 2019-05-24 16:07 赤云封天 阅读(141) 评论(0) 推荐(0)
摘要: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 动态规划解法:d[i][ 阅读全文
posted @ 2019-05-23 20:27 赤云封天 阅读(111) 评论(0) 推荐(0)
摘要: Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer 阅读全文
posted @ 2019-05-23 11:18 赤云封天 阅读(193) 评论(0) 推荐(0)
摘要: 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 contai 阅读全文
posted @ 2019-05-22 23:04 赤云封天 阅读(124) 评论(0) 推荐(0)
摘要: http://www.importnew.com/6581.html 阅读全文
posted @ 2019-05-21 22:20 赤云封天 阅读(121) 评论(0) 推荐(0)
摘要: Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique q 阅读全文
posted @ 2019-05-20 17:11 赤云封天 阅读(113) 评论(0) 推荐(0)
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2019-05-20 11:22 赤云封天 阅读(83) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页