10 2019 档案

摘要:Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever A[i]  阅读全文
posted @ 2019-10-09 15:17 琴影 阅读(222) 评论(0) 推荐(0) 编辑
摘要: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 琴影 阅读(142) 评论(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 琴影 阅读(146) 评论(0) 推荐(0) 编辑