- 博客(4)
- 收藏
- 关注
原创 [leetcode] Merge k Sorted Lists
Merge k Sorted ListsMerge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Example:Input:[ 1->4->5, 1->3->4, 2->6]Output: 1->1-...
2018-09-30 18:19:49 161
原创 [leetcode] Regular Expression Matching
Regular Expression MatchingGiven an input string (s) and a pattern §, implement regular expression matching with support for'.' and'*'.'.' Matches any single character.'*' Matches zero or more of t...
2018-09-23 14:06:59 114
原创 [leetcode] First Missing Positive
Given an unsorted integer array, find the smallest missing positive integer.Example 1:Input: [1,2,0]Output: 3Example 2:Input: [3,4,-1,1]Output: 2Example 3:Input: [7,8,9,11,12]Output: 1...
2018-09-16 11:04:31 148
原创 [leetcode] Median of Two Sorted Arrays
[leetcode] Median of Two Sorted ArraysThere 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...
2018-09-09 14:45:55 149
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人