摘要: 1 """ 2 Given a collection of intervals, merge all overlapping intervals. 3 Example 1: 4 Input: [[1,3],[2,6],[8,10],[15,18]] 5 Output: [[1,6],[8,10],[ 阅读全文
posted @ 2020-02-06 21:49 yawenw 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Intersection of Two Arrays 3 Given two arrays, write a function to compute their intersection. 4 Example 1: 5 Input: nums1 = [1,2,2,1], nums2 阅读全文
posted @ 2020-02-06 21:47 yawenw 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. 3 Sort the array so that when 阅读全文
posted @ 2020-02-06 21:45 yawenw 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 3 Example 1: 4 Input: "bab 阅读全文
posted @ 2020-02-06 15:29 yawenw 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. 3 A mapping of d 阅读全文
posted @ 2020-02-06 15:26 yawenw 阅读(107) 评论(0) 推荐(0) 编辑