摘要:
Given a non-empty array of integers, return the k most frequent elements. For example,Given [1,1,1,2,2,3] and k = 2, return [1,2]. Note: You may assum 阅读全文
摘要:
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum 阅读全文
摘要:
Given a list of non negative integers, arrange them such that they form the largest number. 题意: 给定一堆数字,将它们排列顺序,使其连一块儿能形成最大的数。 思路: 先转化成一个字符串数组 然后把这个数组按 阅读全文