摘要: Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only 阅读全文
posted @ 2019-10-08 22:05 琴影 阅读(146) 评论(0) 推荐(0)
摘要: Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 题目大意:合并区间,[1,3]和[2,6]有交集,合并[1,6]。 思路一:先将数组排序,优先根据区间的第一个数排序,小的排 阅读全文
posted @ 2019-10-08 19:29 琴影 阅读(153) 评论(0) 推荐(0)