频率统计
文章平均质量分 73
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 242. Valid Anagram(变位词校验)
原题网址:https://leetcode.com/problems/valid-anagram/Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true.s原创 2016-04-07 03:15:56 · 778 阅读 · 0 评论 -
LeetCode 266. Palindrome Permutation(对称排列)
原题网址:https://leetcode.com/problems/palindrome-permutation/Given a string, determine if a permutation of the string could form a palindrome.For example,"code" -> False, "aab" -> True, "ca原创 2016-04-11 00:02:33 · 836 阅读 · 0 评论 -
LeetCode 169. Majority Element(众数)
原题网址:https://leetcode.com/problems/majority-element/Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may as原创 2016-05-25 01:37:08 · 1549 阅读 · 0 评论 -
LeetCode 30. Substring with Concatenation of All Words(所有单词的连接)
原题网址:https://leetcode.com/problems/substring-with-concatenation-of-all-words/You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of原创 2016-05-26 02:21:59 · 401 阅读 · 0 评论 -
389. Find the Difference
原题网址:https://leetcode.com/problems/find-the-difference/Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then add one m原创 2016-10-27 02:55:27 · 291 阅读 · 0 评论 -
LeetCode 451. Sort Characters By Frequency
原题网址:https://leetcode.com/problems/sort-characters-by-frequency/Given a string, sort it in decreasing order based on the frequency of characters.Example 1:Input:"tree"Output:"eert"Ex原创 2017-01-04 09:46:43 · 1008 阅读 · 0 评论