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]
阅读全文
摘要: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
阅读全文
摘要:Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 题目大意:合并区间,[1,3]和[2,6]有交集,合并[1,6]。 思路一:先将数组排序,优先根据区间的第一个数排序,小的排
阅读全文