摘要: 原题链接在这里:https://leetcode.com/problems/anagrams/ Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", " 阅读全文
posted @ 2015-08-03 12:09 Dylan_Java_NYC 阅读(309) 评论(0) 推荐(0)
摘要: Basically, they are just two different implementations of List interface.LinkedList is implemented with a double-linked list; ArrayList is implemented... 阅读全文
posted @ 2015-08-03 11:32 Dylan_Java_NYC 阅读(309) 评论(0) 推荐(0)
摘要: 原题链接在这里: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 阅读全文
posted @ 2015-08-03 10:48 Dylan_Java_NYC 阅读(202) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/count-primes/ 题目: Given an integer n, return the number of prime numbers that are strictly less than n. Example 阅读全文
posted @ 2015-08-03 02:57 Dylan_Java_NYC 阅读(219) 评论(0) 推荐(0)