摘要: Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: Note: All inputs will be i 阅读全文
posted @ 2017-06-14 19:30 NaiveCoder 阅读(108) 评论(0) 推荐(0)
摘要: The count-and-say sequence is the sequence of integers with the first five terms as following: 1 is read off as "one 1" or 11.11 is read off as "two 1 阅读全文
posted @ 2017-06-14 19:02 NaiveCoder 阅读(102) 评论(0) 推荐(0)
摘要: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans 阅读全文
posted @ 2017-06-12 16:12 NaiveCoder 阅读(167) 评论(0) 推荐(0)
摘要: Write a function that takes a string as input and returns the string reversed. 阅读全文
posted @ 2017-06-12 15:13 NaiveCoder 阅读(95) 评论(0) 推荐(0)
摘要: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 非常容易的一道题目,注意各种特殊情况,先列举出c 阅读全文
posted @ 2017-06-11 21:25 NaiveCoder 阅读(110) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示